Fix fallthrough in the response status codes

This commit is contained in:
Ernesto Alejo 2016-01-13 16:15:37 +01:00 committed by Ernesto Alejo Oltra
parent beac6273f6
commit 873ed4771d

View file

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