Flush chunked response header immediately
This commit is contained in:
1 parent
5ed18994cd
commit
885b6195f6
1 file changed
+1
@@ -133,6 +133,7 @@ func doChunkedResponse(w http.ResponseWriter, resp *http.Response, client *httpu
|
|||||||
}
|
}
|
||||||
|
|
||||||
w.WriteHeader(resp.StatusCode)
|
w.WriteHeader(resp.StatusCode)
|
||||||
|
wf.Flush()
|
||||||
|
|
||||||
up, remaining := client.Hijack()
|
up, remaining := client.Hijack()
|
||||||
defer up.Close()
|
defer up.Close()
|
||||||
|
|||||||
Reference in new issue
Block a user