Reduce POST content size to 1MB
This commit is contained in:
parent
30d8016d0c
commit
20d4bfadef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue