diff --git a/internal/requestconfig/requestconfig.go b/internal/requestconfig/requestconfig.go index 8d5f77ec..5587f3d5 100644 --- a/internal/requestconfig/requestconfig.go +++ b/internal/requestconfig/requestconfig.go @@ -508,6 +508,7 @@ func (cfg *RequestConfig) Execute() (err error) { } contents, err := io.ReadAll(res.Body) + res.Body.Close() if err != nil { return fmt.Errorf("error reading response body: %w", err) }