From 20d4bfadeff0032ad1a403c8480d556286632d8e Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sun, 19 Feb 2017 19:36:39 +0000 Subject: [PATCH] Reduce POST content size to 1MB --- web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/web.go b/web/web.go index 48269ebe..08fab5a3 100644 --- a/web/web.go +++ b/web/web.go @@ -51,7 +51,7 @@ func Setup(opts *cnf.Options) (err error) { // Check body size s.Use(mw.Size(&mw.SizeOpts{ - AllowedLength: 1 << 22, + AllowedLength: 1 << 20, })) // Check body type