mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
fix: skip nil response (#2705)
This commit is contained in:
parent
e12c9fc637
commit
14778cc1f1
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue