feat(api): write Docker response code when using local proxy (#1192)

pull/1193/head
Anthony Lapenna 7 years ago committed by GitHub
parent f96b70841f
commit d653391cdd

@ -34,6 +34,9 @@ func (proxy *socketProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Add(k, v)
}
}
w.WriteHeader(res.StatusCode)
if _, err := io.Copy(w, res.Body); err != nil {
httperror.WriteErrorResponse(w, err, http.StatusInternalServerError, nil)
}

Loading…
Cancel
Save