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 (-1 / +10 lines)
Lines 192-198 Link Here
192
            headers = {}
192
            headers = {}
193
        headers["accept-encoding"] = "deflate, gzip, x-gzip"
193
        headers["accept-encoding"] = "deflate, gzip, x-gzip"
194
194
195
    scheme, host, port, path = client._parse(url)
195
    if hasattr(client, '_parse'):
196
        scheme, host, port, path = client._parse(url)
197
    else:
198
        from twisted.web.client import _URI
199
        uri = _URI.fromBytes(url)
200
        scheme = uri.scheme
201
        host = uri.host
202
        port = uri.port
203
        path = uri.path
204
196
    factory = HTTPDownloader(url, filename, callback, headers, force_filename, allow_compression)
205
    factory = HTTPDownloader(url, filename, callback, headers, force_filename, allow_compression)
197
    if scheme == "https":
206
    if scheme == "https":
198
        from twisted.internet import ssl
207
        from twisted.internet import ssl

Return to bug 501142