Skip to content

Commit aa3c1c6

Browse files
author
DanTan
committed
add default value to DefaultRouterTrafficConfig function
1 parent 8785981 commit aa3c1c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

router/core/router.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,8 @@ func WithDisableUsageTracking() Option {
18021802

18031803
func DefaultRouterTrafficConfig() *config.RouterTrafficConfiguration {
18041804
return &config.RouterTrafficConfiguration{
1805-
MaxRequestBodyBytes: 1000 * 1000 * 5, // 5 MB
1805+
MaxRequestBodyBytes: 1000 * 1000 * 5, // 5 MB
1806+
ResponseCompressionMinSize: 1024 * 4, // 4 KiB
18061807
}
18071808
}
18081809

0 commit comments

Comments
 (0)