Reduce POST content size to 1MB

This commit is contained in:
Tobie Morgan Hitchcock 2017-02-19 19:36:39 +00:00
parent 30d8016d0c
commit 20d4bfadef

View file

@ -51,7 +51,7 @@ func Setup(opts *cnf.Options) (err error) {
// Check body size // Check body size
s.Use(mw.Size(&mw.SizeOpts{ s.Use(mw.Size(&mw.SizeOpts{
AllowedLength: 1 << 22, AllowedLength: 1 << 20,
})) }))
// Check body type // Check body type