Fix downloading without content-disposition

This commit is contained in:
Florian Bruhin 2014-06-19 21:09:33 +02:00
parent 6ce5afccbe
commit 2fd475b1a4

View File

@ -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()