🐛 Fix large JWT causing 413

This commit is contained in:
LittleSheep 2025-04-05 23:51:57 +08:00
parent 2fb98edb83
commit b2f88c18c0

View File

@ -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"),
})