mirror of https://github.com/docker/docs.git
add missing close in proxy
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
4cac8f2682
commit
c966030832
|
|
@ -68,6 +68,7 @@ func proxy(tlsConfig *tls.Config, addr string, w http.ResponseWriter, r *http.Re
|
|||
copyHeader(w.Header(), resp.Header)
|
||||
w.WriteHeader(resp.StatusCode)
|
||||
io.Copy(NewWriteFlusher(w), resp.Body)
|
||||
resp.Body.Close()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue