mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Fix closing connections
This commit is contained in:
@@ -19,6 +19,8 @@ async def download(
|
||||
response = await client.send(request, stream=True)
|
||||
|
||||
if response.status_code != 200:
|
||||
await response.aclose()
|
||||
await client.aclose()
|
||||
return None
|
||||
|
||||
content_disposition = response.headers["Content-Disposition"]
|
||||
|
||||
Reference in New Issue
Block a user