Fix #2355 previous fix was incorrect - thanks Thomas Hipp
This commit is contained in:
parent
852f6049bd
commit
4ab4998bf7
|
@ -200,12 +200,12 @@ def download_file(url, filename, callback=None, headers=None,
|
|||
if hasattr(client, '_parse'):
|
||||
scheme, host, port, path = client._parse(url)
|
||||
else:
|
||||
from twisted.web import _URI
|
||||
from twisted.web.client import _URI
|
||||
uri = _URI.fromBytes(url)
|
||||
scheme = uri.scheme
|
||||
host = uri.host
|
||||
port = uri.port
|
||||
path = uri.originFrom
|
||||
path = uri.path
|
||||
|
||||
factory = HTTPDownloader(url, filename, callback, headers, force_filename, allow_compression)
|
||||
if scheme == "https":
|
||||
|
|
Loading…
Reference in New Issue