diff --git a/internal/pkg/handler/upgrade.go b/internal/pkg/handler/upgrade.go index 95bdaed4..cf070a83 100644 --- a/internal/pkg/handler/upgrade.go +++ b/internal/pkg/handler/upgrade.go @@ -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 {