summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2013-11-12 14:01:08 -0800
committerAndrew Resch <andrewresch@gmail.com>2013-11-12 14:01:08 -0800
commit8bf18d6694db24e04cb65f20f2e219ec14043f8e (patch)
tree261a84e3610243026e05e77a88fe697629f6cacf
parent06ee112344f7f32fdcfd9ce64eca750524382584 (diff)
downloaddeluge-8bf18d6694db24e04cb65f20f2e219ec14043f8e.tar.gz
deluge-8bf18d6694db24e04cb65f20f2e219ec14043f8e.tar.bz2
deluge-8bf18d6694db24e04cb65f20f2e219ec14043f8e.zip
Fix #2355 previous fix wasn't entirely correct - 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 87bc9cd0c..b1464775f 100644
--- a/deluge/httpdownloader.py
+++ b/deluge/httpdownloader.py
@@ -196,12 +196,12 @@ def download_file(url, filename, callback=None, headers=None, force_filename=Fal
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":