1
0
Эх сурвалжийг харах

modify the maximum content-length to 30MB (#413)

FengZhang 4 жил өмнө
parent
commit
cbfbebed00
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      rest/config.go

+ 1 - 1
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]"`