From 8523e03d481cb9db4055cb8aa78249f560f74ec4 Mon Sep 17 00:00:00 2001 From: Aldino Kemal Date: Tue, 17 May 2022 14:01:25 +0700 Subject: [PATCH] feat: upgrade body limit --- src/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/root.go b/src/cmd/root.go index 5fb1b3a..9489527 100644 --- a/src/cmd/root.go +++ b/src/cmd/root.go @@ -49,7 +49,7 @@ func runRest(cmd *cobra.Command, args []string) { engine := html.NewFileSystem(pkger.Dir("/views"), ".html") app := fiber.New(fiber.Config{ Views: engine, - BodyLimit: 10 * 1024 * 1024, + BodyLimit: 30 * 1024 * 1024, }) app.Static("/statics", "./statics") app.Use(middleware.Recovery())