diff options
Diffstat (limited to 'app/security_update_check.go')
-rw-r--r-- | app/security_update_check.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/security_update_check.go b/app/security_update_check.go index 773556f5e..32d1f4d31 100644 --- a/app/security_update_check.go +++ b/app/security_update_check.go @@ -80,8 +80,7 @@ func (a *App) DoSecurityUpdateCheck() { } bulletins := model.SecurityBulletinsFromJson(res.Body) - ioutil.ReadAll(res.Body) - res.Body.Close() + consumeAndClose(res) for _, bulletin := range bulletins { if bulletin.AppliesToVersion == model.CurrentVersion { |