mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
[several modules] Close the response body (#1040)
This commit is contained in:
@@ -158,6 +158,7 @@ func (widget *Widget) getMonitors() ([]Monitor, error) {
|
||||
if errh != nil {
|
||||
return nil, errh
|
||||
}
|
||||
defer func() { _ = resp.Body.Close() }()
|
||||
|
||||
body, _ := ioutil.ReadAll(resp.Body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user