projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix unclosed response body.
[arvados.git]
/
lib
/
controller
/
proxy.go
diff --git
a/lib/controller/proxy.go
b/lib/controller/proxy.go
index 712071bef947bf02782427d4a739f3e74ee26c4c..a05f18d907f6704ecb1e88e7dd7078eba5a78e92 100644
(file)
--- a/
lib/controller/proxy.go
+++ b/
lib/controller/proxy.go
@@
-70,6
+70,7
@@
func (p *proxy) Do(w http.ResponseWriter, reqIn *http.Request, urlOut *url.URL,
httpserver.Error(w, err.Error(), http.StatusBadGateway)
return
}
+ defer resp.Body.Close()
for k, v := range resp.Header {
for _, v := range v {
w.Header().Add(k, v)