2484 Commits

Author SHA1 Message Date
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
Roman
6e72025b6c ♻️ compression: avoid magic numbers in compression level check
Avoid the magic numbers to make it easier to read
2020-10-07 09:56:27 +02:00
Fenny
e090f5278a
Merge pull request #888 from Fenny/master
🧨 add public to max age header
2020-10-06 20:18:43 +02:00
Fenny
b37789836d 🧪 update cache test 2020-10-06 20:15:21 +02:00
Fenny
ad06443a7a 🧨 add public to max age header 2020-10-06 20:10:03 +02:00
Fenny
8e8ca4e04b
Merge pull request #886 from r-52/r-fix-anchor
🩹 fix the anchor tag and external references to fix the GH-generated link
2020-10-06 19:59:18 +02:00
Roman
180fedc0c4 🩹 fix the anchor tag and external references to fix the GH-generated link 2020-10-06 10:21:16 +02:00
Fenny
b6e8e7cca8
Merge pull request #885 from Fenny/master
📦 prepare v2.0.6
v2.0.6
2020-10-05 21:54:02 +02:00
Fenny
c6a08d9550 ✏ restore feature list 2020-10-05 21:51:35 +02:00
Fenny
251a2e46e2 ⚠ add warning message 2020-10-05 20:06:36 +02:00
Fenny
2d301ed7ce 📦 update version to v2.0.6 2020-10-05 20:05:16 +02:00
Fenny
898d210ea2 Merge remote-tracking branch 'upstream/master' 2020-10-05 20:04:40 +02:00
Fenny
748001b8d6
Merge pull request #883 from r-52/r-favicon-cache-control
🔥add the option to set a custom Cache-Control value for a favicon response
2020-10-05 20:02:59 +02:00
Roman
5a3edb9011 🔥add the option to set a custom Cache-Control value for a favicon response
Right now, each favicon response sets the `Cache-Control` header to
`public, max-age=31536000` (1 year). In some cases this could be a
little bit high if you are changing it etc. and the header is not
replaced by a reverse proxy.

With this change, the favicon middleware allows the configuration of the
`Cache-Control` header. The default behavior is to keep the setting of
`max-age=31536000 `, but you could fine-tune it.
2020-10-05 08:35:29 +02:00
Fenny
5ccc7d4321
Merge pull request #880 from klipitkas/add-coverage-cache
Increase coverage in cache middleware
2020-10-04 19:10:42 +02:00
Konstantinos Lypitkas
9df61e925c Increase coverage in cache middleware 2020-10-04 10:41:54 +03:00
Fenny
9d57e235ed Update README.md 2020-10-04 05:43:27 +02:00
Fenny
16732c183e update features 2020-10-04 05:41:01 +02:00