summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2013-11-12 14:04:01 -0800
committerAndrew Resch <andrewresch@gmail.com>2013-11-12 14:04:01 -0800
commit4ab4998bf7d645cf6548e8ab56c6ffc3c6c4d759 (patch)
treed9440b4d7857866e215f45e6f44e905d6abc326f
parent852f6049bd0b5bf31c8c578b8e112108239847ea (diff)
downloaddeluge-4ab4998bf7d645cf6548e8ab56c6ffc3c6c4d759.tar.gz
deluge-4ab4998bf7d645cf6548e8ab56c6ffc3c6c4d759.tar.bz2
deluge-4ab4998bf7d645cf6548e8ab56c6ffc3c6c4d759.zip
Fix #2355 previous fix was incorrect - thanks Thomas Hipp
-rw-r--r--deluge/httpdownloader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluge/httpdownloader.py b/deluge/httpdownloader.py
index 4cc5cb1ce..e051b7aa4 100644
--- a/deluge/httpdownloader.py
+++ b/deluge/httpdownloader.py
@@ -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":