diff --git a/web/web.go b/web/web.go index 29473359..6ab7d906 100644 --- a/web/web.go +++ b/web/web.go @@ -46,7 +46,7 @@ func Setup(opts *cnf.Options) (err error) { // Check body size s.Use(mw.Size(&mw.SizeOpts{ - AllowedLength: 2000000, + AllowedLength: 1 << 22, })) // Check body type