From c8bba4fb2d3e4532809dd5f7c160723039d1f46e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 20 Mar 2025 21:34:29 +0800 Subject: [PATCH] :bug: Increase the header field size limit --- pkg/internal/web/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/internal/web/server.go b/pkg/internal/web/server.go index 9719f0e..baece04 100644 --- a/pkg/internal/web/server.go +++ b/pkg/internal/web/server.go @@ -29,6 +29,7 @@ func NewServer() *WebApp { JSONEncoder: json.Marshal, JSONDecoder: json.Unmarshal, BodyLimit: 512 * 1024 * 1024 * 1024, // 512 TiB + ReadBufferSize: 5 * 1024 * 1024, // 5MB for large JWT EnablePrintRoutes: viper.GetBool("debug.print_routes"), })