Skip to content

Commit

Permalink
Fix closing response body (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Apr 30, 2024
1 parent 5b54745 commit 63ee6fc
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 63ee6fc

Please sign in to comment.