diff options
Diffstat (limited to 'service/http/server.go')
-rw-r--r-- | service/http/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/server.go b/service/http/server.go index de414b08..4ac9b03c 100644 --- a/service/http/server.go +++ b/service/http/server.go @@ -51,7 +51,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { if size, err := strconv.ParseInt(length, 10, 64); err != nil { s.handleError(w, r, err) return - } else if size > s.cfg.MaxRequest { + } else if size > s.cfg.MaxRequest*1024*1024 { s.handleError(w, r, errors.New("request body max size is exceeded")) return } |