From 43bfe8a8696ae2bf061ec8767aa2d13739620ea3 Mon Sep 17 00:00:00 2001 From: Ben McClelland Date: Fri, 22 Dec 2023 15:24:23 -0800 Subject: [PATCH] fix: body limit no longer needed for streaming request body --- cmd/versitygw/main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cmd/versitygw/main.go b/cmd/versitygw/main.go index df2092c..b9828c5 100644 --- a/cmd/versitygw/main.go +++ b/cmd/versitygw/main.go @@ -20,7 +20,6 @@ import ( "fmt" "log" "os" - "strconv" "github.com/gofiber/fiber/v2" "github.com/urfave/cli/v2" @@ -321,17 +320,9 @@ func initFlags() []cli.Flag { } func runGateway(ctx context.Context, be backend.Backend) error { - // int32 max for 32 bit arch - blimit := int64(2*1024*1024*1024 - 1) - if strconv.IntSize > 32 { - // 5GB max for 64 bit arch - blimit = int64(5 * 1024 * 1024 * 1024) - } - app := fiber.New(fiber.Config{ AppName: "versitygw", ServerHeader: "VERSITYGW", - BodyLimit: int(blimit), StreamRequestBody: true, })