kinggo
075dfc5a8a
optimize: set byteSent log to 0 when use SetBodyStreamWriter ( #2239 )
2022-12-01 09:19:26 +01:00
Clark Winters
f3679167ff
🩹 Fix: Unintended overwritten bind variables ( #2240 )
...
* bindMap key value should only be set when not already present
* add comment
Co-authored-by: Clark Winters <clwinters8@gmail.com>
2022-12-01 09:18:23 +01:00
leonklingele
17dfcc756b
middleware/requestid: mention that the default UUID generator exposes the number of requests made to the server ( #2241 )
2022-12-01 09:11:14 +01:00
Xaver Fischer
6d798dbda9
📝 middleware/filesystem does not handle url encoded values on it's own ( #2247 )
...
* 📝 middleware/filesystem does not handle url encoded values
* Update README.md
add newline after first warning
Co-authored-by: Xaver Fischer <xaverfischer@mail.de>
2022-12-01 08:53:40 +01:00
dependabot[bot]
3629947c3d
Bump github.com/valyala/fasthttp from 1.42.0 to 1.43.0 ( #2245 )
...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp ) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/valyala/fasthttp/releases )
- [Commits](https://github.com/valyala/fasthttp/compare/v1.42.0...v1.43.0 )
---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 19:48:07 +08:00
dependabot[bot]
f8457f2eea
Bump github.com/valyala/fasthttp from 1.41.0 to 1.42.0 ( #2237 )
...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp ) from 1.41.0 to 1.42.0.
- [Release notes](https://github.com/valyala/fasthttp/releases )
- [Commits](https://github.com/valyala/fasthttp/compare/v1.41.0...v1.42.0 )
---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-24 16:32:17 +01:00
RW
8952d170fe
prepare release v2.40.1
v2.40.1
2022-11-23 09:05:31 +01:00
RW
0d038cba46
fix typo
2022-11-21 08:54:34 +01:00
M. Efe Çetin
291fb6e444
🐛 bug: fix mounting when mount prefix is /
( #2227 )
2022-11-20 14:26:42 +01:00
RW
82db2963be
Update vulncheck.yml
2022-11-20 14:26:32 +01:00
RW
fc35dbf927
Update linter.yml
2022-11-20 14:05:03 +01:00
RW
70403aa120
Update security.yml
2022-11-20 14:04:46 +01:00
RW
c8baa613ae
prepare release v2.40.0
v2.40.0
2022-11-18 16:21:47 +01:00
RW
e4b3b5c708
Improve interface for custom logger func ( #2225 )
...
* - logger: fix custom tag
- use real bytebufferpool dependency instead of the internal
* - logger: fix custom tag
- use real bytebufferpool dependency instead of the internal
* - logger: fix custom tag
- use real bytebufferpool dependency instead of the internal
* - logger: fix custom tag
- use real bytebufferpool dependency instead of the internal
2022-11-18 15:32:56 +01:00
Andy Pan
92ce4aac77
📝 Update middleware/logger docs ( #2224 )
...
* 📝 Update middleware/logger docs
Update #2219
* Update middleware/logger/README.md
Co-authored-by: RW <rene@gofiber.io>
2022-11-18 14:29:53 +01:00
René Werner
3d39b82aad
logger: adjustment for the new Done function - use nil instead of empty func
2022-11-18 13:23:57 +01:00
skyenought
e8f8cb647b
✨ Add customTags in logger middleware Config ( #2188 )
...
* ✨ Add customTags in logger middleware Config
* improve tags with parameter
* improve logger performance
* improve logger performance
* improve logger performance
* improve logger performance
Co-authored-by: René Werner <rene@gofiber.io>
2022-11-18 13:10:43 +01:00
Andy Pan
3157fb5f1c
✨ Add callback function for middleware/logger ( #2219 )
...
* ✨ Add callback function for middleware/logger
* Refine test code
2022-11-15 12:14:32 +01:00
Caleb Case
61b4496067
Track Configured Values ( #2221 )
...
* WIP: Use Parent Error Handler on Mount
* Add suggested boolean guard
* Move flag to App
* Move to copy of config as configured
* Apply the same trick to customMethod
2022-11-15 12:13:11 +01:00
leonklingele
235cd9df82
ctx: simplify Protocol() ( #2217 )
...
* ctx: simplify Protocol()
* ctx: also mention "X-Url-Scheme" header in Protocol()
* ctx: use the same warning comment about enabling Config.EnableTrustedProxyCheck everywhere
2022-11-14 08:32:48 +01:00
leonklingele
b288a9f54e
ctx: make Secure() also report whether a secure connection was established to a trusted proxy ( #2215 )
...
We had a discussion about this in https://github.com/gofiber/helmet/pull/74 .
2022-11-14 08:22:35 +01:00
leonklingele
a0645af1ed
Fix and optimize memory storage ( #2207 )
...
* internal/memory: cache timestamp
* internal/memory: ensure to never delete non-expired items
This fixes a TOCTOU problem between a mutex rlock and a mutex lock.
* internal/memory: move costly operations outside of locked area
* internal/storage: cache timestamp
* internal/storage: ensure to never delete non-expired items
This fixes a TOCTOU problem between a mutex rlock and a mutex lock.
* internal/storage: move costly operations outside of locked area
2022-11-14 08:21:03 +01:00
M. Efe Çetin
e5ae764139
🧹 update: replace UnsafeBytes util with suggested way ( #2204 )
2022-11-13 16:58:42 +01:00
M. Efe Çetin
8aeb147c75
✨ feature: add multiple-prefix support to app.Use() and group.Use() ( #2205 )
2022-11-13 16:56:34 +01:00
hs son
20109922aa
Add korean translate in Installation section ( #2213 )
2022-11-13 15:39:15 +03:00
leonklingele
5cac575ad0
utils: reduce diff to external utils package ( #2206 )
...
f33fd2c5f7/bytes.go
2022-11-12 08:27:57 +01:00
Muhammed Efe Çetin
938e0fcea4
♻️ sync other langs with README.md
2022-11-12 09:26:47 +03:00
leonklingele
4d562923aa
README: update list of third-party library licenses ( #2211 )
2022-11-12 09:10:07 +03:00
leonklingele
e388e0edb3
Update HTTP status codes ( #2203 )
...
* helpers: add HTTP status code 306
* helpers: show numeric HTTP status code instead of status code RFC next to errors
* utils: add HTTP status code 425
* helpers,utils: update list of HTTP status codes
2022-11-11 08:40:37 +01:00
Rafi Muhammad
878c9549d8
Feat: Register custom methods ( #2107 )
...
* Implementing register custom methods
* Return timout time to 1000
* Update app_test.go
* Change update stack to add custom request method
* Feat: Register custom methods #2107
* Feat: Register custom methods #2107
* update logic
* optimization.
* fix
Co-authored-by: Rafi Muhammad <rafi.muhammad@mekari.com>
Co-authored-by: RW <rene@gofiber.io>
Co-authored-by: Muhammed Efe Çetin <efectn@protonmail.com>
2022-11-11 08:23:30 +01:00
M. Efe Çetin
581af0052d
🐛 bug: fix naming of routes inside groups ( #2199 )
...
* 🐛 bug: fix naming of routes inside groups
* fix tests
* bug: fix naming of routes inside groups
Co-authored-by: René Werner <rene@gofiber.io>
2022-11-09 16:03:16 +01:00
Glenn Lewis
13247206ab
Add URL prefix to pprof middleware ( #2194 )
...
* Add URL prefix to pprof middleware
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
* Minor tweak
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
Signed-off-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
2022-11-09 07:59:33 +01:00
skyenought
55fcddda6f
📝 Update README_zh-CN.md ( #2186 )
2022-11-09 07:56:58 +01:00
kinggo
486f3709ed
ci: add check-latest param in vulncheck.yml ( #2197 )
...
ci: add check-latest param
2022-11-08 14:20:14 +01:00
M. Efe Çetin
87cedc2022
👷 ci: replace snyk with govulncheck ( #2178 )
2022-11-01 08:50:33 +01:00
James R T
c63a569a92
🚀 [Feature]: Allow optional params with route constraints ( #2179 )
...
Signed-off-by: James R T <jamestiotio@gmail.com>
Signed-off-by: James R T <jamestiotio@gmail.com>
2022-11-01 08:49:44 +01:00
Andy Pan
24a6170323
♻️ Leverage runtime/debug to print the full stack trace info ( #2183 )
2022-10-31 15:12:43 +01:00
pj
ff4602980a
- update Locals function to accept interface{} key ( #2144 )
...
- update Locals function to accept interface{} key (Requires new version of fasthttp)
Co-authored-by: rocketlaunchr-cto <rocketlaunchr.cloud@gmail.com>
2022-10-27 07:51:08 +02:00
dependabot[bot]
fd5045edf9
Bump github.com/valyala/fasthttp from 1.40.0 to 1.41.0 ( #2171 )
...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp ) from 1.40.0 to 1.41.0.
- [Release notes](https://github.com/valyala/fasthttp/releases )
- [Commits](https://github.com/valyala/fasthttp/compare/v1.40.0...v1.41.0 )
---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 12:16:49 +02:00
M. Efe Çetin
691d2e6ad5
🗑️ deprecate: go 1.14 & go 1.15 support deprecation ( #2172 )
...
* 🗑️ deprecate: go 1.14 & go 1.15 support deprecation
https://github.com/valyala/fasthttp/pull/1379
* fix tests
2022-10-26 11:51:50 +02:00
Diego Parisi
eb692727c5
✏️ Fix: comment typo ( #2173 )
...
Just a typo
I think there's a typo "unmashal" for "unmarshal"
2022-10-25 19:05:57 +03:00
marcmartin13
4d584c9c9b
📝 Cache readme and docs update ( #2169 )
...
* Update README.md
* update no-store request directive
added cache status unreachable
* Update cache.go
2022-10-25 07:52:28 +02:00
M. Efe Çetin
156b81c768
🐛 bug: improve mounting behavior ( #2120 )
...
* 🐛 bug: fix mounting doesn't work if when to declare it before routes
* 🐛 bug: fix mounting doesn't work if when to declare it before routes
* 🐛 bug: fix mounting doesn't work if when to declare it before routes
* 🐛 bug: fix mounting doesn't work if when to declare it before routes
* 🐛 bug: fix mounting doesn't work if when to declare it before routes
* add onMount hooks, mountPath like express.js, better behavior for onName, onRoute, onGroup, onGroupName hooks on mounted apps
* add comment
* use once
* fix views when both app and sub-app have view engine, better behavior for mount path
* fix tests
* fix tests
* make some tasks
* make some tasks
2022-10-25 07:51:44 +02:00
RW
5b1885a44c
prepare release 2.39.0
v2.39.0
2022-10-23 10:01:35 +02:00
marcmartin13
c187c6a2f5
🚀 [Feature]: Cache-Control: no-cache ( #2159 )
...
* Added noCache field
Check if the request header Cache-Control contains no-cache
* Update cache.go
* Update config.go
* Update cache.go
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
* patch-1
2022-10-21 10:28:31 +02:00
kinggo
5fb93fdff6
🐛 fix: multi-byte AppName displays confusion ( #2148 )
...
fix: solve wrong print width
2022-10-21 08:30:56 +02:00
José Roberto Vasconcelos
917c937c76
[Bug] Fix query string parameter pass to fiber context ( #2164 )
...
* Remove dump to keep querystring param when test
* Remove unused import
2022-10-20 20:42:06 +02:00
RW
ce2d087394
Improve memory storage ( #2162 )
...
* improve memory storage code and performance
* improve memory storage code and performance
* improve memory storage code and performance
* improve memory storage code and performance
* improve memory storage code and performance
* improve memory storage code and performance
2022-10-19 16:22:42 +02:00
sadfun
5316f0823d
🚀 Make IP validation 2x faster ( #2158 )
...
* 🚀 Make IP vallidation 2x faster
* Add tests for IP validation
* phrasing & linter fix
* change test assert function
That was a surprise that testing style in gofiber/utils and in gofiber/fiber/utils are different 😳
2022-10-18 11:59:23 +02:00
Supakorn Wongsawang
709b132dca
🩹 Fix: handle multiple X-Forwarded header ( #2154 )
...
* fix: handle multiple XForwarded
* fix: use strings.Index instead of strings.Split
Co-authored-by: Supakorn Wongsawang <supakorn.wongsawang@agoda.com>
2022-10-18 11:23:35 +02:00