mirror of
https://github.com/go-acme/lego.git
synced 2025-11-24 15:14:13 +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
|
return rt, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if resp == nil {
|
||||||
|
return rt, nil
|
||||||
|
}
|
||||||
|
|
||||||
if resp.StatusCode/100 == 2 {
|
if resp.StatusCode/100 == 2 {
|
||||||
return rt, nil
|
return rt, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user