mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-06-15 14:53:08 +03:00
disable response compression on websocket (#841)
This commit is contained in:
@@ -306,6 +306,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