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 { if err != nil {
return nil, err return nil, err
} }
defer resp.Body.Close()
issuerBytes, err := ioutil.ReadAll(resp.Body) issuerBytes, err := ioutil.ReadAll(resp.Body)
if err != nil { if err != nil {