Skip to content

Commit

Permalink
fix: close http body. Fixes #8622 (#8624)
Browse files Browse the repository at this point in the history
Signed-off-by: lijie <lijie0123lj@gmail.com>
  • Loading branch information
lijie authored May 5, 2022
1 parent 41301ed commit 64a2b28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apiclient/http1/facade.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func (h Facade) do(in interface{}, out interface{}, method string, path string)
if err != nil {
return err
}
defer resp.Body.Close()
err = errFromResponse(resp)
if err != nil {
return err
Expand Down

0 comments on commit 64a2b28

Please sign in to comment.