* Add test run for go1.17
default type for yaml is changed to „application/x-yaml"
-> instead of the yaml´s we use the html and json files for the test
* Add c.Addr() and c.Port() functions and logger port variable
* Add gofmt suggestion, README.md description and test
* Remove c.Addr() func and use c.fasthttp.RemoteAddr() instead
* fix some old browsers cann't set the cookie if it contains SameSite property.
* add "SameSite" attribute constants and test case.
Co-authored-by: wangjiangao <wangjiangao@360.cn>
* Add Global Layout for view render
* Add test case for Views Layout
* Update ctx_test.go
* Add App Name function to pass custom app name
* Remove json tag for function
* Change func to string
* Add test for AppName
Co-authored-by: RW <rene@gofiber.io>
* Update session.go
Fix: Session.Regenerate does not set Session.fresh to be true.
* Fix: Session should be regenerated if the session can not be found in the storage
https://github.com/gofiber/fiber/issues/1408
* Add test for session and store in session middleware.
* Clean up code
* Update middleware/session/session.go
Co-authored-by: hi019 <65871571+hi019@users.noreply.github.com>
* add tls config for http client in proxy middleware
* update exmaple and make tls.config also affects to proxy.Balancer
* add Test_Proxy_Forward_WithTlsConfig
* add a variable of type *tls.Config
* add a RWMutex for clientTlsConfig
* remove global tls config
* Update README.md
* Update proxy.go
Co-authored-by: RW <rene@gofiber.io>
* Added decompression cases for Body function
* Fixed signature of Body() function
* Removed regex, added Header.Peek
* Added test case with compression
* Added Benchmark, moved compression names to helpers and made them constants
* Added long brotli as a constant
* Update ctx.go
improve Body function
* Update ctx.go
improve performance
* Fixed formatting
* Update helpers.go
Co-authored-by: RW <rene@gofiber.io>
* 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