Skip to content

Commit

Permalink
Update response.go
Browse files Browse the repository at this point in the history
close body
  • Loading branch information
lxzan authored Oct 12, 2021
1 parent 6552ec7 commit b7feea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions response.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func (c *Response) GetBody() ([]byte, error) {
}

func (c *Response) BindJSON(v interface{}) error {
defer c.Body.Close()
if c.err != nil {
return c.err
}
Expand Down

0 comments on commit b7feea0

Please sign in to comment.