576 Commits

Author SHA1 Message Date
Sepehr Rafiei
a95e371920
🐛 Print logger's error to stderr if given io.writer failed (#1299)
Co-authored-by: Sepehr Rafiee <sepehr.rafiee@snapp.cab>
2021-04-25 10:32:35 +02:00
kiyon
3b9f78a02d
Merge pull request #1288 from fernandobandeira/master
 Etag middleware support to custom etags
2021-04-22 19:40:37 +08:00
Jean-Sébastien Ney
c3aafde9db
[middleware/proxy] add buffer size configuration (#1292)
* add buffer size

* add tests
2021-04-20 12:56:00 +02:00
Fernando Bandeira
72c84639be Etag middleware support to custom etags 2021-04-18 23:08:01 -03:00
Nik Schaefer
12b57db688
📚 Doc: Correct cors to favicon in import statement (#1279) 2021-04-11 21:07:31 +02:00
Nik Schaefer
a6868c24b9
📚 Doc: Correct Session to Crsf in Import (#1277) 2021-04-10 16:19:40 -04:00
Sagar Sonwane
ecfcf1cc00
♻️ Removed Printed Warning (#1268)
* ♻️ Removed Printed Warning

removed print statement for warning from monitor.go file

* 📝 Added Warning Message in Readme

added warning message in monitor middleware readme
2021-04-06 15:21:53 +02:00
SianLoong
c71da35ddb
🐛 fix: even error we gonna to unlock it, else it will went deadlock (#1248) 2021-03-30 23:40:09 +02:00
Roman
ca0e784fb9
Refactor cache middleware to not-use the deprecated methods (#1246)
* ♻️ refactor: cache: don't use the deprecated `SafeBytes` and use `CopyBytes` instead

* ♻️ refactor: utils: remove deprecated and unused methods
2021-03-30 23:31:03 +02:00
RW
b1b490645e
Fix session middleware (#1235)
encoding/gob for session middleware
2021-03-26 11:24:55 +01:00
iRedMail
7537390be0
Add a TODO item to remind implementing a breaking change in fiber v3. 2021-03-20 13:36:22 +08:00
iRedMail
078b6e295a
Fix comment in middleware/csrf/config.go 2021-03-20 12:58:08 +08:00
iRedMail
e2fd329f1e
Fix incorrect comment in middleware/session/config.go 2021-03-20 12:55:39 +08:00
Ivan Sotnikov
d9c13d3442
🐛 Set expiration time in test to 1.5 due to the timer error (#1229) 2021-03-19 19:10:53 +01:00
Ivan Sotnikov
b517de85ec
🐛 update expiration for expired entry (#1228) 2021-03-17 08:08:44 +01:00
Zuolar
4dcb490489
fix logger [WARNING: DATA RACE] (#1226)
* fix logger [WARNING: DATA RACE]
* add logger unit test for data race
2021-03-17 08:08:15 +01:00
Joey
0f18e0f1b0
Merge pull request #1194 from gofiber/csrf-mw-restructuring
CSRF MW Restructuring
2021-03-09 15:32:16 +01:00
hi019
13f0d5bb61 Remove global variable 2021-03-09 09:29:47 -05:00
iRedMail
a179c6665c
✏️ FS MW: add example of embedding directory (#1197)
Co-authored-by: hi019 <65871571+hi019@users.noreply.github.com>
2021-03-02 12:12:40 -05:00
hi019
983919fd18
CSRF Docs - Add note about how to get token (#1196) 2021-03-01 20:32:22 -05:00
hi019
b31953ab8d Revert "Remove global variable"
This reverts commit 2d4d2f7c
2021-03-01 16:38:56 -05:00
hi019
2d4d2f7c47 Remove global variable 2021-03-01 16:30:04 -05:00
hi019
86e43593cd CSRF MW Restructuring 2021-03-01 16:25:32 -05:00
Jason McNeil
53e5dc523e
🩹 Fix: CSRF middleware cookie<>storage bug squashed and other improvements (#1180)
* expire cookie on Post, Delete, Patch and Put

Cookie should always expire on Post, Delete, Patch and Put as it is either valid and will be removed from storage, or is not in storage and invalid

* token and cookie match

* retrigger checks

* csrf tests

* csrf per session strategy
2021-03-01 17:44:17 +01:00
tianjipeng
59b12fbcb2
fix: lookup cookie in response header (#1191) 2021-03-01 17:25:36 +01:00
Andrew DeChristopher
13c4245242 🔥 Fix favicon filesystem tests
This change exists to support go 1.16 embedded filesystems and other network filesystems that can't simply be read as a file from a system path.
2021-02-24 12:27:32 -05:00
Andrew DeChristopher
6a5698277c 🔥 Add optional FileSystem config to favicon middleware
This change exists to support go 1.16 embedded filesystems and other network filesystems that can't simply be read as a file from a system path.
2021-02-24 11:42:54 -05:00
kiyon
0d8fa6bf63
Merge pull request #1187 from kiyonlin/improve-proxy-test
👷 Improve proxy middleware test case
2021-02-23 16:28:14 +08:00
Kiyon
1a67fdb343 👷 Improve proxy middleware test case
- add t.Parallel()
- use random port
2021-02-23 15:32:27 +08:00
circa10a
c1386ff6c5 📝 docs: add embed example for go 1.16 2021-02-18 09:38:05 -06:00
Joey
557023f399
Merge pull request #1150 from cornerot/patch-1
🐛 Fix setting host header in proxy middleware
2021-02-17 14:12:38 +01:00
RW
7d51885384
📚 fix wrong session code example (#1170)
📚 fix wrong session code example
2021-02-16 14:50:17 +01:00
cornerot
0e2e04b9ba
add fasthttp.LBClient to the proxy middleware 2021-02-04 23:04:11 +03:00
Joey
66c457d5c8
Merge pull request #1135 from tianjipeng/fix/cache
ajust config.Next position
2021-01-31 07:55:25 +01:00
tianjipeng
08a2e7a82d ajust cache middleware config.Next position 2021-01-26 10:26:13 +08:00
Joey
e332d54b29
Merge pull request #1134 from ReneWerner87/improve_bootstrap_for_many_routes
 Accelerate start process for many routes #1081
2021-01-25 15:40:35 +01:00
Joey
b03b596a59
Merge pull request #1132 from xenowits/master
Reference to issue #1115
2021-01-25 15:39:43 +01:00
Joey
a9b648eda8
Merge pull request #1131 from tianjipeng/master
🔥 Feature: recover middleware support print stack trace
2021-01-25 15:38:35 +01:00
Abhishek Kumar
cae82d0a2f 🩹 Fix: fix test for response body 2021-01-24 15:00:51 +00:00
Abhishek Kumar
e8c3a0fac3 🩹 Fix: add separate test for resBody logger variable 2021-01-24 13:11:46 +00:00
ReneWerner87
42755c30e6 Accelerate start process for many routes #1081 2021-01-24 13:02:21 +01:00
RW
9b3d86098b
📖 fix style 2021-01-24 12:42:22 +01:00
Abhishek Kumar
94589e2348 Merge local changes 2021-01-24 11:21:36 +00:00
Abhishek Kumar
9c18716885 🔥 Feature: add proper tests for new logger variables 2021-01-24 11:21:10 +00:00
xenowits
2b36972d81 🩹 Fix: adjust tab spaces in logger README 2021-01-24 15:49:08 +05:30
xenowits
2a1c717448 🩹 Fix: add new variables to README 2021-01-24 15:41:46 +05:30
xenowits
dc1727fcc7 fix: spacing in logger variables - issue #1115 2021-01-23 23:04:28 +05:30
Abhishek Kumar
7c36b32194 🩹 Fix: reference to logger issue #1115 2021-01-23 17:19:33 +00:00
bluetian
5adafe2ecb recover middleware support print stack trace 2021-01-23 13:33:49 +08:00
hinoguma
1ad5a618cb make default handler to private. fix testcase for invalid token and empty token. 2021-01-23 12:39:27 +09:00