@@ -87,6 +87,7 @@ func (c *Client) DeleteWorkspace(ctx context.Context, id string) error {
8787// SubscribeEvents subscribes to server-sent events for a workspace.
8888func (c *Client) SubscribeEvents(ctx context.Context, id string) (<-chan any, error) {
8989 events := make(chan any, 100)
90+ //nolint:bodyclose
9091 rsp, err := c.get(ctx, fmt.Sprintf("/workspaces/%s/events", id), nil, http.Header{
9192 "Accept": []string{"text/event-stream"},
9293 "Cache-Control": []string{"no-cache"},