We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69154c9 + 670a374 commit fc2e58aCopy full SHA for fc2e58a
1 file changed
exporter/http.go
@@ -152,6 +152,7 @@ func getHTTPResponse(url string, token string) (*http.Response, error) {
152
153
// check rate limit exceeded.
154
if resp.Status == RateLimitExceededStatus {
155
+ resp.Body.Close()
156
return nil, fmt.Errorf("%s", resp.Status)
157
}
158
0 commit comments