Merge pull request #75 from ernestoalejo/patch-1

Add explicit fallthrough
This commit is contained in:
xenolf 2016-01-14 00:36:54 +01:00
commit c590b724c7

View file

@ -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 {