From 39cda65208ec5c8f12a71c8a173679cc713a11b5 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Mar 2025 00:08:51 +0800 Subject: [PATCH] :bug: Fix large JWT headers --- pkg/internal/server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/internal/server/server.go b/pkg/internal/server/server.go index 3a281d7..42e5497 100644 --- a/pkg/internal/server/server.go +++ b/pkg/internal/server/server.go @@ -32,6 +32,7 @@ func NewServer() *App { JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal, BodyLimit: 512 * 1024 * 1024 * 1024, // 512 TiB + ReadBufferSize: 5 * 1024 * 1024, // 5MB for large JWT EnablePrintRoutes: viper.GetBool("debug.print_routes"), })