From 885b6195f69501cafa2400a909387da5e5ae4bf4 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 24 May 2016 08:28:24 +0100 Subject: [PATCH] Flush chunked response header immediately --- proxy/proxy_intercept.go | 1 + 1 file changed, 1 insertion(+) diff --git a/proxy/proxy_intercept.go b/proxy/proxy_intercept.go index b2c16331..45a16558 100644 --- a/proxy/proxy_intercept.go +++ b/proxy/proxy_intercept.go @@ -133,6 +133,7 @@ func doChunkedResponse(w http.ResponseWriter, resp *http.Response, client *httpu } w.WriteHeader(resp.StatusCode) + wf.Flush() up, remaining := client.Hijack() defer up.Close()