* simplify `u <= (1<<7)-1` to `u < (1 << 7)`
* It's not recommended to use `len` for empty string, we can check with string with ""
* It's not recommended to use `len` for empty string, we can check with string with ""
* It's not recommended to use `len` for empty string, we can check with string with ""
* It's not recommended to use `len` for empty string, we can check with string with ""
* Instead Bool comparison can using simplified bool check if !var = false checking
* Unnecessary use of fmt.Sprintf for value without format
* For check condition two value not required ! method
* nil check may not be enough for slice, better check with len
* function parameters combined
* When the form returns error information, the text content should not start with a capital letter or end with a punctuation mark
* error var invalidPath should have name of the form errFoo, It is recommended that the error variables that are part of an API should be named
* change to condition len(x), it's faster https://github.com/gofiber/fiber/pull/1386#discussion_r652369520
* Update write.go
* Update write_bytes.go
* Update store.go
Co-authored-by: RW <rene@gofiber.io>
* add cache header to show cache status
* update default CacheHeader to X-Cache
* add CacheHeader test
* Update cache_test.go
use constants in test
Co-authored-by: RW <rene@gofiber.io>
* Add README_fa.md for persian users
* Add flag IR for fix Error: URI Too Long
* Modfied flag image png to svg
* Modified IR flag url for src
* Fixed grammar
* 🚀 new possibility to escape special routing parameters, which gives the possibility to follow the google api design guide https://cloud.google.com/apis/design/custom_methods
* 🚀 new possibility to escape special routing parameters, which gives the possibility to follow the google api design guide https://cloud.google.com/apis/design/custom_methods
* 🚀 Configure proxy.Balancer with custom timeout or client #1362
* 🚀 Configure proxy.Balancer with custom timeout or client #1362
* Update fasthttp version to resolve brotli warnings
andybalholm/brotli retracted v1.0.1 release due to discovering Go
panics. Unfortunately old version of fasthttp used v1.0.1 as a direct
dependency and given fasthttp is a direct dependence of fiber this
causes legitimate warnings when getting fiber module.
This commit update fasthttp version to v1.25.0 which ships with updated
brotli version.
* Update fasthttp to v1.26.0
* 🔥 Feature: Define KeyLookup configuration (#1110)
* 🔥 Feature: Allow session ID to be written in header (#1110)
* 🔥 Feature: Allow session ID to be obtained from different sources (#1110)
* 📚 Doc: Add Source configuration (#1110)
See #1308
This adds a parameter called `PathPrefix` to `filesystem.Config`
that is prepended to any filepath being read from
`filesystem.Root`.
Intended to be used with Go 1.16's `embed.FS` type.
Signed-off-by: Tom <tom@tdpain.net>
* fix: pass handlerCount when mounting to an App
* test: check for correct handlerCount after mounting an instance
* fix: pass handlerCount when mounting to a Group
* test: check for correct handlerCount after mounting to a Group
Co-authored-by: dleitter <dario.leittersdorf@bonprix.net>