We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 831b724 commit 670a374Copy full SHA for 670a374
1 file changed
exporter/http.go
@@ -146,6 +146,7 @@ func getHTTPResponse(url string, token string) (*http.Response, error) {
146
147
// check rate limit exceeded.
148
if resp.Status == RateLimitExceededStatus {
149
+ resp.Body.Close()
150
return nil, fmt.Errorf("%s", resp.Status)
151
}
152
0 commit comments