From d5beea4ce8caf47f50bbc3cc34f89bcadd3a7a48 Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Tue, 23 Jul 2024 14:43:15 +0200 Subject: [PATCH] Update stream.py --- comet/api/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comet/api/stream.py b/comet/api/stream.py index 21b4020..55f7ecf 100644 --- a/comet/api/stream.py +++ b/comet/api/stream.py @@ -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()