diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-10-12 08:00:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-12 08:00:53 -0700 |
commit | 3461a7b20704464ee3c19a3dd31805e4c5c1fc4f (patch) | |
tree | b14ad4935a9453157024e638b5c468a1833e0eae /app/security_update_check.go | |
parent | 521e27f4ace125b47879b38edbad07d7c21a54e6 (diff) | |
download | chat-3461a7b20704464ee3c19a3dd31805e4c5c1fc4f.tar.gz chat-3461a7b20704464ee3c19a3dd31805e4c5c1fc4f.tar.bz2 chat-3461a7b20704464ee3c19a3dd31805e4c5c1fc4f.zip |
Add back consumeAndClose functionality. (#7608)
* consume bodies for action button integrations, webrtc gateway, oauth
endpoint
* Fixing a couple more places, switching to io.Copy to ioutil.Discard, adding a comment to help prevent future performance regressions
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 { |