1
0
mirror of https://github.com/go-acme/lego.git synced 2024-11-25 17:01:48 +02:00

Close response body in getIssuerCertificate

This commit is contained in:
xenolf 2015-12-21 01:42:33 +01:00
parent cb9a6e8207
commit 00af84d91b

View File

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