This commit is contained in:
cfif1982 2026-04-03 14:34:12 +00:00 committed by GitHub
commit d42fdbdfba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1688,6 +1688,8 @@ func (c *Client) httpRequestWithContext(ctx context.Context, r *Request) (*Respo
if err != nil {
return result, fmt.Errorf("redirect failed: %s", err)
}
defer resp.Body.Close()
}
if err := result.Error(); err != nil {