live: disable gzip for ws endpoints (#34015)

This commit is contained in:
Alexander Emelin
2021-05-12 18:39:57 +03:00
committed by GitHub
parent 167bad070b
commit 765fa675f5

View File

@@ -14,7 +14,8 @@ var gzipIgnoredPathPrefixes = []string{
"/api/datasources/proxy", // Ignore datasource proxy requests.
"/api/plugin-proxy/",
"/metrics",
"/live/ws", // WebSocket does not support gzip compression.
"/api/live/ws", // WebSocket does not support gzip compression.
"/api/live/push", // WebSocket does not support gzip compression.
}
func Gziper() macaron.Handler {