From 60d8c0b7666b4d711cea7d598799bb39d84684ee Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Mar 2025 00:07:52 +0800 Subject: [PATCH] :bug: Fix large JWT header --- pkg/internal/http/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/internal/http/server.go b/pkg/internal/http/server.go index 5bb4cb6..aea3d56 100644 --- a/pkg/internal/http/server.go +++ b/pkg/internal/http/server.go @@ -33,6 +33,7 @@ func NewServer() *App { JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, BodyLimit: 50 * 1024 * 1024, + ReadBufferSize: 5 * 1024 * 1024, // 5MB for large JWT EnablePrintRoutes: viper.GetBool("debug.print_routes"), })