diff --git a/common/httpapi.go b/common/httpapi.go index 65037e29e..af8bf5302 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() }()