Skip to content

Commit

Permalink
fix: close resp body
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Apr 24, 2024
1 parent 6f798c0 commit 0442c55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/pkg/handler/upgrade.go
Expand Up @@ -133,6 +133,7 @@ func sendWebhook(url string) (string, []error) {
// the reloader seems to retry automatically so no retry logic added
return "", err
}
defer resp.Body.Close()
var buffer bytes.Buffer
_, bufferErr := io.Copy(&buffer, resp.Body)
if bufferErr != nil {
Expand Down

0 comments on commit 0442c55

Please sign in to comment.