Skip to content

Commit 7ed7afe

Browse files
committed
fix closing wrong response body
1 parent 11a3f1f commit 7ed7afe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

api/client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ func (c *Client) Do(req *http.Request) (*http.Response, error) {
6969
if err != nil {
7070
return nil, err
7171
}
72-
defer res.Body.Close()
7372

7473
debug.DumpResponse(res)
7574
return res, nil

0 commit comments

Comments
 (0)