mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 16:58:31 +02:00
feat(net): add option to disable compression
This commit is contained in:
@@ -55,6 +55,9 @@ func NewReverseProxyRoute(base *Route) (*ReveseProxyRoute, gperr.Error) {
|
||||
if httpConfig.ResponseHeaderTimeout > 0 {
|
||||
trans.ResponseHeaderTimeout = httpConfig.ResponseHeaderTimeout
|
||||
}
|
||||
if httpConfig.DisableCompression {
|
||||
trans.DisableCompression = true
|
||||
}
|
||||
}
|
||||
|
||||
service := base.Name()
|
||||
|
||||
Reference in New Issue
Block a user