mirror of
https://github.com/go-acme/lego.git
synced 2025-11-23 22:54:55 +02:00
fix: skip nil response (#2705)
This commit is contained in:
committed by
GitHub
parent
e12c9fc637
commit
14778cc1f1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user