From 873ed4771d0f98241b0abd4087cbb81b4c5015d1 Mon Sep 17 00:00:00 2001 From: Ernesto Alejo Date: Wed, 13 Jan 2016 16:15:37 +0100 Subject: [PATCH] Fix fallthrough in the response status codes --- acme/client.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/acme/client.go b/acme/client.go index 64b55b9f..b8682956 100644 --- a/acme/client.go +++ b/acme/client.go @@ -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 {