3068 Commits

Author SHA1 Message Date
wowpoppy
8e47ccd9ed
✏️ Remove unused path parameter in README example (#1201)
* ✏️ Remove unused path parameter in example

* Update translations
2021-03-05 11:18:21 +01: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
Baran Demirbaş
bbd101d70d
✏️ Fix typos and translate some sentences English to Turkish (#1192) 2021-02-27 20:15:15 -05:00
kiyon
5675716832
Merge pull request #1189 from dechristopher/master
🔥 Add optional FileSystem config to middleware/favicon
2021-02-26 13:09:57 +08:00
Kiyon
6ea71e9464 🍺 Cleanup 2021-02-26 10:48:53 +08:00
kiyon
57cfb507aa
Merge pull request #1186 from kiyonlin/fix-listener
👷 Fix hardcode tls to startupMessage in app.Listener
2021-02-25 20:05:25 +08:00
Kiyon
09ff81716c 👷 Add beta warning 2021-02-25 10:41:39 +08: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
b46185e1b0 👷 Fix hardcode tls to startupMessage in app.Listener 2021-02-23 16:40:17 +08:00
Kiyon
866fc6f747 Merge branch 'master' of https://github.com/kiyonlin/fiber
# Conflicts:
#	.github/workflows/test.yml
2021-02-23 16:37:28 +08:00
kiyon
45d19cda25
Update test.yml 2021-02-23 16:36:59 +08: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
Kiyon
9bcfb5109d 👷 Improve test case 2021-02-22 14:48:00 +08:00
Kiyon
f9d1074635 👷 Should not force Agent.dest to Agent.dest[:0] 2021-02-22 14:37:31 +08:00
Kiyon
2772af030e 👷 handle pre errors for Struct 2021-02-22 10:06:38 +08:00
Kiyon
1fddaed072 👷 Add Dest for reusing returned body bytes 2021-02-22 09:47:47 +08:00
Kiyon
b5402e0f38 👷 Add SetResponse to set custom response for full control of response 2021-02-22 09:13:24 +08:00
Kiyon
169001c2e1 👷 fix golint 2021-02-22 08:47:19 +08:00
Kiyon
bc9651d58b 👷 Remove custom request and export agent request 2021-02-22 08:38:54 +08:00
Kiyon
a2eab0d754 👷 Improve documentation 2021-02-22 08:19:44 +08:00
Kiyon
c34ca83c06 👷 Add JSONEncoder and JSONDecoder 2021-02-20 16:45:13 +08:00
Kiyon
c477128e5b 👷 Improve test coverage 2021-02-20 16:12:06 +08:00
Kiyon
62d311133b 👷 Add Bytes functions 2021-02-20 15:46:41 +08:00
Kiyon
a60d23343c 👷 Improve test cases 2021-02-20 14:56:47 +08:00
Kiyon
040ab0e101 👷 Improve test cases 2021-02-20 14:50:37 +08:00
Kiyon
645e011813 👷 Add HEAD PUT PATCH DELETE 2021-02-20 14:50:20 +08:00
Kiyon
7c5fac67cf 👷 Improve doc 2021-02-20 14:31:48 +08:00
Kiyon
5093eb8e27 👷 Fix G304 and allow G402 2021-02-20 14:31:17 +08:00
Kiyon
f4307905a4 👷 Add MultipartForm 2021-02-19 17:21:59 +08:00
Kiyon
5af0d42e7b 👷 Add XML 2021-02-19 10:03:51 +08:00
Kiyon
20104ba10f 👷 Add BasicAuth 2021-02-19 09:53:51 +08:00
Kiyon
6cc4a5ec04 🍀 Cleanup 2021-02-19 09:01:54 +08:00
hi019
583131b84b
Add Golang 1.16 to testing matrix (#1176) 2021-02-18 11:06:35 -05:00
hi019
94995cf90f
Merge pull request #1175 from circa10a/embed-example
add embed example for go 1.16
2021-02-18 10:39:57 -05:00
circa10a
c1386ff6c5 📝 docs: add embed example for go 1.16 2021-02-18 09:38:05 -06:00
Kiyon
e93306ca61 👷 Add BodyString 2021-02-18 17:26:13 +08:00
Kiyon
51986b2e7c 🔥 Fiber Client poc 2021-02-18 17:06:40 +08: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
hi019
402e6633e5
Merge pull request #1168 from TroyDota/patch-1
Remove duplicate line
2021-02-14 22:10:36 -05:00
TroyDota
80fadc607c
Update memory.go 2021-02-15 04:07:51 +02:00
kiyon
50e02e5149
Merge pull request #1149 from theArtechnology/patch-1
 Add fiber-inertia to README.md
2021-02-09 20:02:27 +08:00