http: increase request limit from 8MB to 32MB

This commit is contained in:
Armon Dadgar 2016-11-17 12:15:37 -08:00
parent c8dadb46ec
commit 57ad75071c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ const (
// MaxRequestSize is the maximum accepted request size. This is to prevent
// a denial of service attack where no Content-Length is provided and the server
// is fed ever more data until it exhausts memory.
MaxRequestSize = 8 * 1024 * 1024
MaxRequestSize = 32 * 1024 * 1024
)
// Handler returns an http.Handler for the API. This can be used on