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}
|
PrivateKey: privateKeyPem}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|
||||||
switch resp.StatusCode {
|
switch resp.StatusCode {
|
||||||
case 202:
|
case 201, 202:
|
||||||
case 201:
|
|
||||||
cert, err := ioutil.ReadAll(limitReader(resp.Body, 1024*1024))
|
cert, err := ioutil.ReadAll(limitReader(resp.Body, 1024*1024))
|
||||||
resp.Body.Close()
|
resp.Body.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue