From 8ea3e4763c816d7b48b99bfb4366d461cf081f97 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 6 Feb 2024 20:02:47 +0800 Subject: [PATCH] :bug: Increase body size limit --- pkg/server/startup.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/startup.go b/pkg/server/startup.go index b8bc482..1dceea4 100644 --- a/pkg/server/startup.go +++ b/pkg/server/startup.go @@ -27,6 +27,7 @@ func NewServer() { ProxyHeader: fiber.HeaderXForwardedFor, JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, + BodyLimit: 50 * 1024 * 1024, EnablePrintRoutes: viper.GetBool("debug"), })