Skip to content

Commit

Permalink
Close res body (rocketchat) (#2135)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored May 23, 2024
1 parent 70e8c6e commit 733f4c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bridge/rocketchat/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (b *Brocketchat) uploadFile(fi *config.FileInfo, channel string) error {
if err != nil {
return err
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err
Expand Down

0 comments on commit 733f4c7

Please sign in to comment.