Skip to content

Commit 629c187

Browse files
committed
close body
1 parent f374bba commit 629c187

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nudebox/nudebox.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func (c *Client) Check(image io.Reader) (float64, error) {
9898
if err != nil {
9999
return 0, err
100100
}
101+
defer resp.Body.Close()
101102
if resp.StatusCode < 200 || resp.StatusCode >= 300 {
102103
return 0, errors.New(resp.Status)
103104
}

0 commit comments

Comments
 (0)