🐛 Fix large JWT header
This commit is contained in:
parent
8e33b99bca
commit
60d8c0b766
@ -33,6 +33,7 @@ func NewServer() *App {
|
|||||||
JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal,
|
JSONEncoder: jsoniter.ConfigCompatibleWithStandardLibrary.Marshal,
|
||||||
JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal,
|
JSONDecoder: jsoniter.ConfigCompatibleWithStandardLibrary.Unmarshal,
|
||||||
BodyLimit: 50 * 1024 * 1024,
|
BodyLimit: 50 * 1024 * 1024,
|
||||||
|
ReadBufferSize: 5 * 1024 * 1024, // 5MB for large JWT
|
||||||
EnablePrintRoutes: viper.GetBool("debug.print_routes"),
|
EnablePrintRoutes: viper.GetBool("debug.print_routes"),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user