Fix downloading without content-disposition
This commit is contained in:
parent
6ce5afccbe
commit
2fd475b1a4
@ -338,6 +338,8 @@ class DownloadManager(QObject):
|
||||
# os.path.basename later.
|
||||
filename = rfc6266.parse_headers(
|
||||
bytes(reply.rawHeader('Content-Disposition'))).filename_unsafe
|
||||
else:
|
||||
filename = None
|
||||
# Then try to get filename from url
|
||||
if not filename:
|
||||
filename = reply.url().path()
|
||||
|
Loading…
Reference in New Issue
Block a user