mirror of
https://github.com/nikdoof/hg612-exporter.git
synced 2025-12-13 02:12:15 +00:00
fix: ensure response body is closed
This commit is contained in:
@@ -69,6 +69,7 @@ func (c HG612Client) DSLStatus() (*VDSLStatus, error) {
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "error executing dsl status request")
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
all, err := ioutil.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user