diff --git a/acme/client.go b/acme/client.go index 8c7e644f..742a8f20 100644 --- a/acme/client.go +++ b/acme/client.go @@ -656,6 +656,7 @@ func (c *Client) getIssuerCertificate(url string) ([]byte, error) { if err != nil { return nil, err } + defer resp.Body.Close() issuerBytes, err := ioutil.ReadAll(resp.Body) if err != nil {