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:
parent
cb9a6e8207
commit
00af84d91b
@ -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 New Issue
Block a user