From 7d452b610ed96ce0e0b7bdbe5118e702a3512223 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 14 Sep 2016 10:19:08 +0100 Subject: [PATCH] Increase maximum body size on PUT/POST --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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