1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 03:27:27 +00:00

Set the default max request body size to 4mb

Align with
e4db3cb560
This commit is contained in:
Makis Maropoulos
2016-06-29 20:07:35 +03:00
parent f57d457d39
commit b2d1e6396d
2 changed files with 5 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ func (s *Framework) initialize() {
s.Handle(MethodGet, debugPath+"/*action", profileMiddleware(debugPath)...)
}
if s.Config.MaxRequestBodySize > 0 {
if s.Config.MaxRequestBodySize > config.DefaultMaxRequestBodySize {
s.HTTPServer.MaxRequestBodySize = int(s.Config.MaxRequestBodySize)
}
}