diff --git a/proxy/http_proxy.go b/proxy/http_proxy.go index a23d8c3b4..ce6f0f237 100644 --- a/proxy/http_proxy.go +++ b/proxy/http_proxy.go @@ -273,6 +273,12 @@ func (rw *responseWriter) WriteHeader(statusCode int) { rw.code = statusCode } +func (rw *responseWriter) Flush() { + if fl, ok := rw.w.(http.Flusher); ok { + fl.Flush() + } +} + var errNoHijacker = errors.New("not a hijacker") func (rw *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {