How did this get missed

This commit is contained in:
Kegan Dougal 2020-04-15 15:31:30 +01:00
parent 9d32ab8ff3
commit deee80f93a

View file

@ -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()
}()