Skip to content
Snippets Groups Projects
Commit fdc7f08b authored by Alex Ellis's avatar Alex Ellis
Browse files

Pass along status code


Signed-off-by: default avatarAlex Ellis <alexellis2@gmail.com>
parent 7120e4c5
No related branches found
No related tags found
No related merge requests found
......@@ -47,10 +47,15 @@ func MakeForwardingProxyHandler(proxy *types.HTTPClientReverseProxy, metrics *me
defer res.Body.Close()
}
// Populate any headers received
for k, v := range res.Header {
w.Header()[k] = v
}
// Write status code
w.WriteHeader(res.StatusCode)
// Copy the body over
io.CopyBuffer(w, res.Body, nil)
seconds := time.Since(start).Seconds()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment