1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-24 11:03:54 +00:00

2451 Commits

Author SHA1 Message Date
Fenny
ee6baf0854
Merge pull request #929 from Fenny/master
🧪 update proxy unit test
2020-10-15 13:03:34 +02:00
Fenny
e3c2dfae23 🧪 update proxy unit test 2020-10-15 13:03:06 +02:00
Fenny
7b7869911a
Merge pull request #928 from Fenny/master
📦 don't allow empty servers on proxy mw
2020-10-15 12:54:44 +02:00
Fenny
0db09d9f0b 📦 don't allow empty servers on proxy mw 2020-10-15 12:54:17 +02:00
Fenny
3c40cb7de3
Merge pull request #924 from klipitkas/refactor-proxy-middleware
Refactor proxy middleware and increase coverage
2020-10-15 12:53:11 +02:00
Konstantinos Lypitkas
483931fdcc Remove extra slashes from comments 2020-10-15 13:15:59 +03:00
Fenny
870e0c34cd
Merge pull request #927 from kiyonlin/deprecated-etag-option
🔥 Deprecate ETag option and bump version to 2.1.0
2020-10-15 11:44:41 +02:00
kiyon
a586bec2f9 🔥 Deprecate ETag option and bump version to 2.1.0 2020-10-15 16:53:29 +08:00
Fenny
0bbce8f988
Merge pull request #926 from kiyonlin/etag-mw
Add Etag middleware
2020-10-15 10:51:07 +02:00
kiyon
f0a4e6ad36 👷 Improve performance and test coverage 2020-10-15 16:36:39 +08:00
kiyon
dfb4aa26d9 👷 Add benchmark for etag middleware 2020-10-15 12:55:17 +08:00
kiyon
2275fe8ce6 👷 Improve etag middleware 2020-10-15 12:32:54 +08:00
kiyon
fb4cf7e887 👷 Add etag middleware 2020-10-14 17:01:13 +08:00
hi019
db1eedb5b7
💚 Fix CI: remove localhost from target.Listen 2020-10-13 19:23:05 -04:00
Konstantinos Lypitkas
3d59648b7d Refactor proxy middleware and increase coverage 2020-10-14 00:48:09 +03:00
Fenny
d4e604f1a3
Merge pull request #921 from klipitkas/minor-requestid-change
Minor requestid middleware change
2020-10-13 11:48:49 +02:00
Fenny
fbc49bedf7
Merge pull request #922 from klipitkas/refactor-basic-auth
Refactor basicauth middleware
2020-10-13 11:47:55 +02:00
Konstantinos Lypitkas
8c49028a39 Refactor basicauth middleware 2020-10-12 19:22:05 +03:00
Konstantinos Lypitkas
67a45db8e2 Add test assertion to requestid 2020-10-12 19:05:48 +03:00
Konstantinos Lypitkas
9d4a83a55b Minor refactor for clarity 2020-10-12 19:05:27 +03:00
Fenny
827bd38f5a
Merge pull request #918 from kiyonlin/cover-908
🩹 Improve test case for Ctx.SendFile to cover #908 as #911 mentioned
2020-10-11 12:48:26 +02:00
kiyon
f70acc5bae 🩹 Improve test case for Ctx.SendFile to cover #908 as #911 mentioned 2020-10-11 08:28:41 +08:00
Fenny
b55a0b3080
Merge pull request #917 from DevDevious/issue_914
Fix for #914
2020-10-11 01:42:30 +02:00
Fenny
a6eee05e58
Merge pull request #916 from DevDevious/issue_912
Fix for #912
2020-10-11 01:42:15 +02:00
Cosmin Goea
ac6daebcda Fix for #914. 2020-10-10 17:02:56 -04:00
Cosmin Goea
b9bd7c66c1 Fix for #912. 2020-10-10 16:57:15 -04:00
Fenny
5629c6507d
Merge pull request #906 from kiyonlin/fix-903
🩹 Avoid panic when updating statistics
2020-10-10 16:26:35 +02:00
Fenny
c0efbcd28c
Merge pull request #908 from hi019/master
🐛 Make SendFile return 404 if file not found
2020-10-10 16:26:21 +02:00
hi019
2c8df2e337 🎨 Use NewError in SendFile 2020-10-09 23:11:44 -04:00
kiyon
d446a32b30 🩹 Avoid panic when updating statistics
fix #903
2020-10-10 10:39:12 +08:00
hi019
b73e883241 🐛 Make SendFile return 404 if file not found 2020-10-09 21:42:25 -04:00
Fenny
45399ef9fe
Merge pull request #902 from codemicro/child-pids-on-start
📦 Add child PID display when prefork enabled
2020-10-09 18:44:29 +02:00
Tom
35e100db6e
📦 Add child PID display when prefork enabled 2020-10-09 09:40:49 +01:00
Tom
53ab7a63bc
Merge pull request #1 from gofiber/master
Get new changes
2020-10-09 08:31:10 +01:00
Fenny
69cbe1b6ea
Merge pull request #901 from alfuhigi/master
renaming to README_sa
2020-10-09 06:41:32 +02:00
Abdulaziz Jaiz
d04d8d15ec renaming to README_sa https://github.com/gofiber/website/pull/10#pullrequestreview-504575447 2020-10-09 03:28:37 +03:00
Fenny
d4750fbf2b
Merge pull request #897 from klipitkas/custom-type-compress-middleware
Add custom types to compress middleware
2020-10-08 18:13:49 +02:00
Fenny
68e8684add
Merge pull request #898 from Fenny/master
📦 add cache benchmark + 1 min default
2020-10-08 18:13:18 +02:00
Fenny
33e91e8111 📦 add benchmark 2020-10-08 18:11:26 +02:00
Konstantinos Lypitkas
550d3a3549 Fix grammatical issues 2020-10-08 10:56:25 +03:00
Konstantinos Lypitkas
60cebf2506 Add custom types to compress middleware 2020-10-08 00:05:34 +03:00
Fenny
5d8e533946
Merge pull request #896 from r-52/r-max-age-on-static-files
🔥 set `Cache Control` header for static resources
2020-10-07 15:45:56 +02:00
Roman
3e6dfb313b 🔥set a Cache Control header for static ressources
Right now, each static request returns the file without any cache control
header. If you are using `app.Static` to serve your assets, the
browser shouldn't cache it. This PR introduces a way to set the cache
control header (if the file was found) on the file response to set a
custom max-age to e.g. cache it 1 year.
2020-10-07 15:44:38 +02:00
Fenny
47f866fc80
Merge pull request #893 from r-52/r-compress-dont-use-magic-numbers
♻️ compression: avoid magic numbers in compression level check
2020-10-07 15:34:11 +02:00
Fenny
7b16c8439c
Merge pull request #895 from Fenny/master
🧪 add benchmark to basicauth
2020-10-07 15:27:58 +02:00
Fenny
e30d9dad39 🧪 add benchmark to basicauth 2020-10-07 13:51:18 +02:00
Fenny
dcf7b35c1c
Merge pull request #892 from r-52/r-memory-opt-for-fasthttp
🔥 make the fasthttp `ReduceMemoryUsage` flag public
2020-10-07 12:40:28 +02:00
Roman
6084e7c1f1 🔥 make the fasthttp ReduceMemoryUsage flag public
This PR introduces the `ReduceMemoryUsage` flag to the server config
that is pulled to the underlying fasthttp server. The default is false
to keep the old behavior.

The implementation of `ReduceMemoryUsage` is here: 01acd76daf/server.go (L285)

Refs: #866 / https://github.com/gofiber/fiber/issues/866#issuecomment-704818583
2020-10-07 12:33:47 +02:00
Fenny
61c891c565
Merge pull request #891 from r-52/r-use-constants-for-tests
♻️ refactor app test to use the constants to access the http methods and headers
2020-10-07 11:33:28 +02:00
Roman
acb6bbea2b ♻️ refactor app test to use the constants to access the http methods and headers 2020-10-07 11:07:12 +02:00