mirror of
https://github.com/kataras/iris.git
synced 2026-05-14 18:13:49 +00:00
Extend Read & Write BufferSize header and max request body size is 8mb now
This commit is contained in:
6
http.go
6
http.go
@@ -399,9 +399,9 @@ func (s *Server) Open(h fasthttp.RequestHandler) error {
|
||||
|
||||
s.prepare() // do it again for any case
|
||||
|
||||
if s.Config.MaxRequestBodySize > config.DefaultMaxRequestBodySize {
|
||||
s.Server.MaxRequestBodySize = int(s.Config.MaxRequestBodySize)
|
||||
}
|
||||
s.Server.MaxRequestBodySize = s.Config.MaxRequestBodySize
|
||||
s.Server.ReadBufferSize = s.Config.ReadBufferSize
|
||||
s.Server.WriteBufferSize = s.Config.WriteBufferSize
|
||||
|
||||
if s.Config.RedirectTo != "" {
|
||||
// override the handler and redirect all requests to this addr
|
||||
|
||||
Reference in New Issue
Block a user