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
1 changed files with 1 additions and 0 deletions

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) {