forked from TrueCloudLab/lego
Fix fallthrough in the response status codes
This commit is contained in:
parent
beac6273f6
commit
873ed4771d
1 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue