From deee80f93ae115de6ad9b86f2ff0fa86958a2049 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 15 Apr 2020 15:31:30 +0100 Subject: [PATCH] How did this get missed --- common/httpapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/httpapi.go b/common/httpapi.go index af8bf5302..d49f11bc9 100644 --- a/common/httpapi.go +++ b/common/httpapi.go @@ -76,7 +76,7 @@ func MakeExternalAPI(metricsName string, f func(*http.Request) util.JSONResponse } } w.WriteHeader(resp.StatusCode) - _ = io.Copy(w, resp.Body) + _, _ = io.Copy(w, resp.Body) resp.Body.Close() }()