165 Commits

Author SHA1 Message Date
Fenny
3242e5b151 🚀 allow incase-sensitive ctypes in bodyparser
Co-Authored-By: Mones Zarrugh <11161902+moneszarrugh@users.noreply.github.com>
2020-12-11 00:59:32 +01:00
Fenny
a1879ceca8 🚧 refactor bodyparser
Co-Authored-By: Mones Zarrugh <11161902+moneszarrugh@users.noreply.github.com>

#1067
2020-12-11 00:56:54 +01:00
Fenny
1468a049c4 ✏ removeNewLines is present in fh 1.18
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
Co-Authored-By: kiyon <kiyon@gofiber.io>
2020-12-11 00:49:57 +01:00
Kiyon
d6d831e2b1 👷 fix lint 2020-11-30 13:49:13 +08:00
Fenny
c9bbc9fc54 📚 update JSON description
Co-Authored-By: nickland03 <52105217+nickland03@users.noreply.github.com>
2020-11-01 10:46:19 +01:00
ckcks12
e0122f261c 🐛 queryparser: query args count based condition removed 2020-10-26 14:48:21 +09:00
ReneWerner87
d8961a7ed9 🐛 Fix (*Ctx).Accepts
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: navossoc <navossoc@gmail.com>
2020-10-24 20:06:13 +02:00
yonbiaoxiao
d622469203 improve base uri for ctx 2020-10-19 14:01:34 +08: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
hi019
b73e883241 🐛 Make SendFile return 404 if file not found 2020-10-09 21:42:25 -04:00
David Mazary
618b753230 🚨 Fix gosimple lint warnings 2020-10-03 13:20:54 -04:00
Fenny
e5e9cf9201 🍪 add max-age to cookie 2020-09-30 15:31:46 +02:00
Fenny
d6f717148a 🛠 correct convert naming 2020-09-27 12:22:17 +02:00
Fenny
3fbc1470c6 🏀 Support splitting in QueryParser
Co-Authored-By: Nathaniel Peiffer <nathaniel@peiffer.com.au>
2020-09-20 12:15:53 +02:00
Fenny
cb7f084615
Merge pull request #812 from ReneWerner87/improveErrorHandling
☠️ Improve error handling flow
2020-09-19 09:19:31 +02:00
ReneWerner87
c822a17c72 ☠️ Improve error handling flow
Co-authored-by: Fenny <fenny@gofiber.io>
Co-authored-by: Kiyon <kiyon@gofiber.io>
2020-09-18 20:44:00 +02:00
Fenny
4163d4473a 📦 introduce WriteString 2020-09-18 11:52:06 +02:00
Fenny
2768ea2a77 🙌 make utils public
Co-Authored-By: RW <7063188+ReneWerner87@users.noreply.github.com>
2020-09-14 12:12:29 +02:00
Fenny
a09daabfee move utils to internal 2020-09-14 09:24:48 +02:00
Fenny
a3cac71ae8 🔦 move utils to internal 2020-09-14 09:09:06 +02:00
Fenny
3d76f078a4 v2 2020-09-14 04:54:26 +02:00
Fenny
2951c6ac0d v2 2020-09-13 11:39:55 +02:00
Fenny
ec5d66e7a8 v2 2020-09-13 11:20:11 +02:00
ReneWerner87
df3c48a734 🌵hybrid routing with tree and fast router 2020-08-10 10:51:38 +02:00
ReneWerner87
e802c41f41 Merge branch 'hybrid_routing' into improve_route_behavior 2020-08-10 10:14:31 +02:00
ReneWerner87
945b61d1c3 🌵hybrid routing with tree and fast router 2020-08-09 21:53:15 +02:00
ReneWerner87
d9c09fa68e 🚀 improve routing behavior 2020-08-09 19:50:10 +02:00
Fenny
797fe3a8e5 Set cType directly in Render 2020-07-31 14:01:37 +02:00
kiyon
7863cd1458 👷 add ctx.Render test cases 2020-07-29 11:07:47 +08:00
Fenny
87127f571a 🧹 Remove deprecated Templates 2020-07-28 04:36:56 +02:00
fenny
d06256c944
Merge pull request #675 from larrylv/larrylv/improve_no_cache_header_matching
🚀 Don't use regexp for no-cache value check
2020-07-27 04:43:19 +02:00
Larry Lv
fc85699a95
🧹 Refactor etag stale checking 2020-07-26 18:53:26 -07:00
Larry Lv
fd75ef0fbe
🚀 Don't use regexp for no-cache value check 2020-07-25 22:35:43 -07:00
kiyon
4ebd887faa 🩹 when X-Forwarded-For is empty, ctx.Ips() should not return any(even empty) ip 2020-07-24 21:53:08 +08:00
Fenny
cd3e37fc91 🧹 Improve BodyParser
Co-Authored-By: RW <renewerner87@googlemail.com>
Co-Authored-By: kiyon <kiyonlin@users.noreply.github.com>
2020-07-21 22:50:12 +02:00
fenny
6616950649
Merge pull request #657 from ReneWerner87/improve_ctxIs
 Improve ctx.Is performance
2020-07-21 22:24:02 +02:00
ReneWerner87
aafa784bbb Improve ctx.Is performance 2020-07-21 21:28:13 +02:00
Fenny
2f87bf9005 🍻 Update Query condition
Co-Authored-By: Thomas van Vugt <thomasvvugt@users.noreply.github.com>
2020-07-21 21:23:22 +02:00
ReneWerner87
88b4da6a03 Improve ctx.Is performance 2020-07-21 21:09:51 +02:00
Fenny
9dc4d9faeb ✏ Fix deprecation message 2020-07-21 20:46:42 +02:00
Fenny
ae959fae5a 🧉 Allow missing space in Content-Type's using BodyParser
Co-Authored-By: RW <renewerner87@googlemail.com>
2020-07-21 19:43:32 +02:00
Hemanth Krishna
f695e21b1e ✏️ Fix typo for app and ctx warnings 2020-07-18 20:19:42 +05:30
fenny
c84ae11e26
Merge pull request #630 from kiyonlin/fix-625
👷 fixed ctx.Render bug
2020-07-17 19:27:42 +02:00
kiyon
762b00f7d0 👷 fixed #625 2020-07-17 10:05:01 +08:00
kiyon
c89bfb3634 🔔 fix ctx matched bug, it should be reset to false when acquired 2020-07-17 09:34:27 +08:00
ReneWerner87
9ec400b5d5 🚀 improve ctx.Render performance -> reduce allocation (if app is started as non-immutable) 2020-07-16 11:12:50 +02:00
ReneWerner87
89f929fcb0 🚀 improve ctx.Links performance -> reduce allocation (if app is started as non-immutable) 2020-07-16 11:02:36 +02:00
kiyon
df19f6d933 👷 fix data race in sendFile test 2020-07-16 09:00:20 +08:00
fenny
a2f2e76c3d
Merge pull request #619 from Fenny/master
🧫 Add TLS tests
2020-07-15 13:10:14 -04:00