Skip to content

Commit

Permalink
Don't close response body on media fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
vurpo committed Jul 7, 2023
1 parent 1278ac4 commit ace2efd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,6 @@ func (cli *Client) doMediaRequest(req *http.Request, retries int, backoff time.D
cli.LogRequestDone(req, res, err, nil, 0, duration)
return nil, err
}
defer res.Body.Close()

if retries > 0 && cli.shouldRetry(res) {
if res.StatusCode == http.StatusTooManyRequests {
Expand Down

0 comments on commit ace2efd

Please sign in to comment.