Merge pull request #30562 from robertsirc/fix-roundtripper-error-handling

fixing error handling from a previous PR
pull/12276/merge
Robert Sirchia 7 months ago committed by GitHub
commit 6436bc1e1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -58,7 +58,7 @@ func (rt *RetryingRoundTripper) roundTrip(req *http.Request, retry int, prevResp
r.Seek(0, io.SeekStart)
resp.Body = io.NopCloser(r)
if err != nil {
return resp, nil
return resp, err
}
if ke.Code < 500 {
return resp, nil

Loading…
Cancel
Save