Skip to content

Commit ae2da1c

Browse files
authored
Merge pull request #596 from adanaja/fix-typo
Fix name of downloaded file when fileobj is not None
2 parents d77b14a + a4a3483 commit ae2da1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/e3/net/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def download_file(
295295

296296
if fileobj is not None:
297297
# Write to file object if provided
298-
logger.info("downloading %s size=%s", path, content_length)
298+
logger.info("downloading %s size=%s", filename, content_length)
299299
for chunk in chunks:
300300
fileobj.write(chunk)
301301
return filename

0 commit comments

Comments
 (0)