mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmauth: disable automatic response compression/uncompression, since it may work improperly in some cases
See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/535
This commit is contained in:
parent
7680b7155d
commit
c1be462d42
1 changed files with 8 additions and 0 deletions
|
@ -79,6 +79,14 @@ var reverseProxy = &httputil.ReverseProxy{
|
||||||
}
|
}
|
||||||
r.URL = target
|
r.URL = target
|
||||||
},
|
},
|
||||||
|
Transport: func() *http.Transport {
|
||||||
|
tr := http.DefaultTransport.(*http.Transport).Clone()
|
||||||
|
// Automatic compression must be disabled in order to fix https://github.com/VictoriaMetrics/VictoriaMetrics/issues/535
|
||||||
|
tr.DisableCompression = true
|
||||||
|
// Disable HTTP/2.0, since VictoriaMetrics components don't support HTTP/2.0 (because there is no sense in this).
|
||||||
|
tr.ForceAttemptHTTP2 = false
|
||||||
|
return tr
|
||||||
|
}(),
|
||||||
FlushInterval: time.Second,
|
FlushInterval: time.Second,
|
||||||
ErrorLog: logger.StdErrorLogger(),
|
ErrorLog: logger.StdErrorLogger(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue