Skip to content

Commit 0442c55

Browse files
committedApr 24, 2024·
fix: close resp body
1 parent 6f798c0 commit 0442c55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎internal/pkg/handler/upgrade.go

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func sendWebhook(url string) (string, []error) {
133133
// the reloader seems to retry automatically so no retry logic added
134134
return "", err
135135
}
136+
defer resp.Body.Close()
136137
var buffer bytes.Buffer
137138
_, bufferErr := io.Copy(&buffer, resp.Body)
138139
if bufferErr != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.