mirror of https://github.com/docker/docs.git
proxy status codes
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
7bd8109a3b
commit
93f35e6c97
|
@ -220,6 +220,7 @@ func proxyContainer(c *context, w http.ResponseWriter, r *http.Request) {
|
|||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
}
|
||||
w.WriteHeader(resp.StatusCode)
|
||||
io.Copy(w, resp.Body)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue