Skip to content

Commit

Permalink
close body
Browse files Browse the repository at this point in the history
  • Loading branch information
phughes-scwx committed Nov 27, 2024
1 parent e46a835 commit c7b6e95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/incremental_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func (p *Client) IncrementalHTTP(ctx context.Context, query string, options ...O

return &IncrementalHandler{
close: func() error {
res.Body.Close()
cancel(context.Canceled)
return nil
},
Expand Down

0 comments on commit c7b6e95

Please sign in to comment.