Skip to content

Commit 6bb6968

Browse files
committed
Ensure response Body is closed on ws reads
1 parent fb145fb commit 6bb6968

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client/output.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func (c *Client) GetOutput(ctx context.Context, buildID string, or OutputReader)
4848
c.Logger.Logf("websocket dial err - %s, partial response: %+v", err, resp)
4949
return err
5050
}
51+
defer resp.Body.Close()
5152
defer ws.Close()
5253

5354
go func() {

0 commit comments

Comments
 (0)