diff --git a/httputilx/httputilx.go b/httputilx/httputilx.go index f8adef4..c135bde 100644 --- a/httputilx/httputilx.go +++ b/httputilx/httputilx.go @@ -245,7 +245,7 @@ func DoExponentialBackoff(req *http.Request, options ...ExponentialBackoffOption resp, err := o.client.Do(reqClone) if !o.shouldRetry(resp, err) || attempt >= o.maxRetries { - return resp, nil + return resp, err } logArgs := []any{