mirror of
https://github.com/go-acme/lego.git
synced 2025-04-07 15:38:37 +02:00
Merge pull request #75 from ernestoalejo/patch-1
Add explicit fallthrough
This commit is contained in:
commit
c590b724c7
@ -468,10 +468,8 @@ func (c *Client) requestCertificate(authz []authorizationResource, bundle bool,
|
||||
PrivateKey: privateKeyPem}
|
||||
|
||||
for {
|
||||
|
||||
switch resp.StatusCode {
|
||||
case 202:
|
||||
case 201:
|
||||
case 201, 202:
|
||||
cert, err := ioutil.ReadAll(limitReader(resp.Body, 1024*1024))
|
||||
resp.Body.Close()
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user