Remove unnecessary change

This commit is contained in:
Brandon Rising 2024-01-30 21:06:17 -05:00 committed by Kent Keirsey
parent 2c5ef92979
commit a769f93be0

View File

@ -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)
content_length = int(resp.headers.get("content-length", 0))
if dest.is_dir():
try:
file_name = re.search('filename="(.+)"', resp.headers.get("Content-Disposition")).group(1)