From f4cb1a850a051832204698bb00c2f24abebc4470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 22 Nov 2023 15:36:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8C=E6=AD=A5=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/http.go b/config/http.go index 2e2cae2d..24247b56 100644 --- a/config/http.go +++ b/config/http.go @@ -16,8 +16,8 @@ func init() { "fiber": map[string]any{ // prefork mode, see https://docs.gofiber.io/api/fiber/#config "prefork": false, - // Optional, default is 4MB - "body_limit": 4000, + // Optional, default is 4096 KB + "body_limit": 1024 * 1024 * 4, "route": func() (route.Route, error) { return fiberfacades.Route("fiber"), nil },