diff --git a/api/http/proxy/socket.go b/api/http/proxy/socket.go index 740010a63..5a9158492 100644 --- a/api/http/proxy/socket.go +++ b/api/http/proxy/socket.go @@ -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) }