mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 15:05:37 +01:00
Fix bug
This commit is contained in:
@@ -68,8 +68,8 @@ class FLDownloader(BaseDownloader):
|
|||||||
)
|
)
|
||||||
|
|
||||||
async with httpx.AsyncClient(proxies=httpx_proxy) as client:
|
async with httpx.AsyncClient(proxies=httpx_proxy) as client:
|
||||||
response = await client.get(url, follow_redirects=True)
|
response = await client.get(url, follow_redirects=True, timeout=10 * 60)
|
||||||
content_type = response.headers.get("Content-Type", timeout=10 * 60)
|
content_type = response.headers.get("Content-Type")
|
||||||
|
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
raise NotSuccess(f'Status code is {response.status_code}!')
|
raise NotSuccess(f'Status code is {response.status_code}!')
|
||||||
|
|||||||
Reference in New Issue
Block a user