From ae2c141efa516d172157c473a96191156cdbffbd Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Mar 2025 00:08:10 +0800 Subject: [PATCH] :bug: Fix large JWT headers --- pkg/internal/http/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/internal/http/server.go b/pkg/internal/http/server.go index 6194050..c8ec747 100644 --- a/pkg/internal/http/server.go +++ b/pkg/internal/http/server.go @@ -1,9 +1,10 @@ package http import ( + "strings" + "git.solsynth.dev/hypernet/nexus/pkg/nex/sec" "git.solsynth.dev/hypernet/passport/pkg/authkit" - "strings" "git.solsynth.dev/hypernet/messaging/pkg/internal/http/api" "github.com/gofiber/fiber/v2" @@ -31,6 +32,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"), })