Skip to content

Commit

Permalink
Update stream.py
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy authored Jul 23, 2024
1 parent bdb22dc commit d5beea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comet/api/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ async def close(self):
range = f"bytes={start}-{end}"

async with httpx.AsyncClient(proxy=proxy) as client:
response = await client.get(download_link, headers={"Range": range} if range else None)
response = await client.head(download_link, headers={"Range": range} if range else None)
if response.status_code == 206:
streamer = Streamer()

Expand Down

0 comments on commit d5beea4

Please sign in to comment.