Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 501142 | Differences between
and this patch

Collapse All | Expand All

(-)a/deluge/httpdownloader.py (-3 / +2 lines)
Lines 200-211 def download_file(url, filename, callback=None, headers=None, Link Here
200
    if hasattr(client, '_parse'):
200
    if hasattr(client, '_parse'):
201
        scheme, host, port, path = client._parse(url)
201
        scheme, host, port, path = client._parse(url)
202
    else:
202
    else:
203
        from twisted.web import _URI
203
        from twisted.web.client import _URI
204
        uri = _URI.fromBytes(url)
204
        uri = _URI.fromBytes(url)
205
        scheme = uri.scheme
205
        scheme = uri.scheme
206
        host = uri.host
206
        host = uri.host
207
        port = uri.port
207
        port = uri.port
208
        path = uri.originFrom
208
        path = uri.path
209
209
210
    factory = HTTPDownloader(url, filename, callback, headers, force_filename, allow_compression)
210
    factory = HTTPDownloader(url, filename, callback, headers, force_filename, allow_compression)
211
    if scheme == "https":
211
    if scheme == "https":
212
- 

Return to bug 501142