Flush chunked response header immediately

This commit is contained in:
Adam Harrison committed 2016-05-24 08:28:24 +01:00
1 parent 5ed18994cd
commit 885b6195f6
1 file changed
+1
+1
View File
@@ -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()