Fix not fetching images properlly when url is redirected

pull/526/head
Humberto Rocha 2023-02-25 17:46:27 -05:00
rodzic 9aff13118a
commit 79a551fdc1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 95241B44896A09FB
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -71,7 +71,9 @@ async def get_remote_file(
}
async with httpx.AsyncClient(headers=headers) as client:
async with client.stream("GET", url, timeout=timeout) as stream:
async with client.stream(
"GET", url, timeout=timeout, follow_redirects=True
) as stream:
allow_download = max_size is None
if max_size:
try: