Close Body after reading.

This commit is contained in:
FireMasterK 2020-10-25 16:46:16 +00:00 committed by GitHub
parent f844b7a793
commit 3680e840d1

View file

@ -72,6 +72,7 @@ func genericHTTPProxy(w http.ResponseWriter, req *http.Request) {
w.WriteHeader(resp.StatusCode)
io.Copy(w, resp.Body)
resp.Body.Close()
}
func copyHeaders(from http.Header, to http.Header) {