1
0
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:
Makis Maropoulos
2016-07-12 15:40:06 +02:00
parent 4fd3460662
commit e61d1f8c3c
3 changed files with 43 additions and 10 deletions

View File

@@ -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