mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Remove unnecessary change
This commit is contained in:
committed by
Kent Keirsey
parent
2c5ef92979
commit
a769f93be0
@ -288,6 +288,7 @@ def download_with_resume(url: str, dest: Path, access_token: str = None) -> Path
|
|||||||
|
|
||||||
resp = requests.get(url, headers=header, stream=True, allow_redirects=True)
|
resp = requests.get(url, headers=header, stream=True, allow_redirects=True)
|
||||||
content_length = int(resp.headers.get("content-length", 0))
|
content_length = int(resp.headers.get("content-length", 0))
|
||||||
|
|
||||||
if dest.is_dir():
|
if dest.is_dir():
|
||||||
try:
|
try:
|
||||||
file_name = re.search('filename="(.+)"', resp.headers.get("Content-Disposition")).group(1)
|
file_name = re.search('filename="(.+)"', resp.headers.get("Content-Disposition")).group(1)
|
||||||
|
Reference in New Issue
Block a user