diff --git a/pkg/http/client.go b/pkg/http/client.go index 93fbabc3..3ebead93 100644 --- a/pkg/http/client.go +++ b/pkg/http/client.go @@ -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 {