From c4758c6217d9a9241a6f86b7dbe21e034cde63f5 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Mar 2025 00:07:32 +0800 Subject: [PATCH] :bug: Fix large JWT header --- 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 9e115ae..a92c63c 100644 --- a/pkg/internal/web/server.go +++ b/pkg/internal/web/server.go @@ -29,6 +29,7 @@ func NewServer() *App { EnableIPValidation: true, ServerHeader: "HyperNet.Passport", AppName: "HyperNet.Passport", + ReadBufferSize: 5 * 1024 * 1024, // 5MB for large JWT ProxyHeader: fiber.HeaderXForwardedFor, JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal, JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal,