Skip to content

Commit

Permalink
Merge pull request #15 from stek29/patch-1
Browse files Browse the repository at this point in the history
Fix resource leak
  • Loading branch information
hugomd authored Jul 20, 2020
2 parents 4aa2ca7 + 6bc1016 commit cd1327e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/providers/cloudflare/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func (api *CloudflareAPI) request(method string, uri string, body io.Reader) ([]
if err != nil {
return nil, err
}
defer resp.Body.Close()

if resp.StatusCode != http.StatusOK {
panic("Status code not 200")
Expand Down

0 comments on commit cd1327e

Please sign in to comment.