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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,8 @@ var gzipIgnoredPathPrefixes = []string{
"/api/datasources/proxy", // Ignore datasource proxy requests. "/api/datasources/proxy", // Ignore datasource proxy requests.
"/api/plugin-proxy/", "/api/plugin-proxy/",
"/metrics", "/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 { func Gziper() macaron.Handler {