diff --git a/services/httpd/handler.go b/services/httpd/handler.go index d9c33180547..22228af07b8 100644 --- a/services/httpd/handler.go +++ b/services/httpd/handler.go @@ -756,6 +756,10 @@ func (w gzipResponseWriter) Flush() { w.Writer.(*gzip.Writer).Flush() } +func (w gzipResponseWriter) CloseNotify() <-chan bool { + return w.ResponseWriter.(http.CloseNotifier).CloseNotify() +} + // determines if the client can accept compressed responses, and encodes accordingly func gzipFilter(inner http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {