From 3680e840d1e5b07bdf3f358791a609a6807c5206 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 25 Oct 2020 16:46:16 +0000 Subject: [PATCH] Close Body after reading. --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 2ee0f9b..a1429af 100644 --- a/main.go +++ b/main.go @@ -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) {