Skip to content

Commit

Permalink
fix: close res body
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Apr 18, 2024
1 parent 169af4b commit 60307b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (c *client[R]) Send(req Request) (Result[R], error) {
if err != nil {
return Result[R]{}, fmt.Errorf("request failed: %w", err)
}
defer res.Body.Close()

err = c.cookieJar.Save()
if err != nil {
Expand Down

0 comments on commit 60307b9

Please sign in to comment.