fixing error handling from a previous PR

Signed-off-by: Robert Sirchia <rsirchia@outlook.com>
pull/30562/head
Robert Sirchia 7 months ago
parent 8edc3ac024
commit 8207fafe13
No known key found for this signature in database
GPG Key ID: C2D40F4D8196E874

@ -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