diff --git a/comet/api/stream.py b/comet/api/stream.py index 7c27d8b..0d62ccb 100644 --- a/comet/api/stream.py +++ b/comet/api/stream.py @@ -398,7 +398,7 @@ def __init__(self): self.response = None async def stream_content(self, headers: dict): - async with client.stream( + async with self.client.stream( "GET", download_link, headers=headers ) as self.response: async for chunk in self.response.aiter_raw():