1
0
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:
Ludovic Fernandez
2025-11-06 13:19:09 +01:00
committed by GitHub
parent e12c9fc637
commit 14778cc1f1

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
}