From 63ea5e848f6e9b43c74026ae3e33d9315504d64d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 2 Aug 2024 15:39:19 +0800 Subject: [PATCH] :bug: Fix request entity too large --- pkg/internal/server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/internal/server/server.go b/pkg/internal/server/server.go index d90f354..e3901cc 100644 --- a/pkg/internal/server/server.go +++ b/pkg/internal/server/server.go @@ -27,6 +27,7 @@ func NewServer() *HTTPApp { ProxyHeader: fiber.HeaderXForwardedFor, JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, + BodyLimit: 512 * 1024 * 1024 * 1024, // 512 TiB EnablePrintRoutes: viper.GetBool("debug.print_routes"), })