forked from TrueCloudLab/lego
Close response body in getIssuerCertificate
This commit is contained in:
parent
cb9a6e8207
commit
00af84d91b
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue