From cbfbebed00af749d35dc1b02731b875fa18153c0 Mon Sep 17 00:00:00 2001 From: FengZhang Date: Fri, 29 Jan 2021 22:14:48 +0800 Subject: [PATCH] modify the maximum content-length to 30MB (#413) --- rest/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest/config.go b/rest/config.go index f9aaf4d9..5c97e425 100644 --- a/rest/config.go +++ b/rest/config.go @@ -32,7 +32,7 @@ type ( KeyFile string `json:",optional"` Verbose bool `json:",optional"` MaxConns int `json:",default=10000"` - MaxBytes int64 `json:",default=1048576,range=[0:8388608]"` + MaxBytes int64 `json:",default=1048576,range=[0:31457280]"` // milliseconds Timeout int64 `json:",default=3000"` CpuThreshold int64 `json:",default=900,range=[0:1000]"`