fix: skip nil response (#2705)

This commit is contained in:
Ludovic Fernandez 2025-11-06 13:19:09 +01:00 committed by GitHub
commit 14778cc1f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -180,6 +180,10 @@ func checkRetry(ctx context.Context, resp *http.Response, err error) (bool, erro
return rt, err
}
if resp == nil {
return rt, nil
}
if resp.StatusCode/100 == 2 {
return rt, nil
}