This commit is contained in:
Kegan Dougal 2020-04-15 15:24:29 +01:00
parent 392dca78cd
commit 9d32ab8ff3

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