summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPRequest.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r--module/network/HTTPRequest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index 67d1e0f19..25563cd72 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -90,7 +90,8 @@ class HTTPRequest():
else:
self.c.setopt(pycurl.PROXYTYPE, pycurl.PROXYTYPE_HTTP)
- self.c.setopt(pycurl.PROXY, "%s:%s" % (proxy["address"], proxy["port"]))
+ self.c.setopt(pycurl.PROXY, proxy["address"])
+ self.c.setopt(pycurl.PROXYPORT, proxy["port"])
if proxy["username"]:
self.c.setopt(pycurl.PROXYUSERPWD, "%s:%s" % (proxy["username"], proxy["password"]))
@@ -204,4 +205,4 @@ if __name__ == "__main__":
url = "http://pyload.org"
c = HTTPRequest()
print c.load(url)
- \ No newline at end of file
+