mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-05-21 02:36:29 +03:00
disable response compression on websocket (#841)
This commit is contained in:
committed by
Aliaksandr Valialkin
parent
9b91305a31
commit
0093ee3cd9
@@ -276,6 +276,9 @@ func maybeGzipResponseWriter(w http.ResponseWriter, r *http.Request) http.Respon
|
||||
if *disableResponseCompression {
|
||||
return w
|
||||
}
|
||||
if r.Header.Get("Connection") == "Upgrade" {
|
||||
return w
|
||||
}
|
||||
ae := r.Header.Get("Accept-Encoding")
|
||||
if ae == "" {
|
||||
return w
|
||||
|
||||
Reference in New Issue
Block a user