Skip to content

Commit fa36c03

Browse files
committed
Fixed upload server.
1 parent 03f13df commit fa36c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ func main() {
242242
adminServer := &fasthttp.Server{
243243
Handler: adminRequestHandler,
244244
NoDefaultServerHeader: true,
245+
MaxRequestBodySize: config.MaxFileSize * 1024 * 1024,
245246
}
246247

247248
if len(config.AdminHTTPAddr) > 0 {
@@ -269,7 +270,6 @@ func main() {
269270
publicServer := &fasthttp.Server{
270271
Handler: publicRequestHandler,
271272
NoDefaultServerHeader: true,
272-
MaxRequestBodySize: config.MaxFileSize * 1024 * 1024,
273273
}
274274

275275
if len(config.PublicHttpAddr) > 0 {

0 commit comments

Comments
 (0)