summaryrefslogtreecommitdiffstats
path: root/module/network/HTTPRequest.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-01 22:51:30 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-01 22:51:30 +0200
commit0a305f78abacdd38f5b9b9af4aa3c4c982da6895 (patch)
tree80a69601ca89ff25959d9236f3dee77467c6a495 /module/network/HTTPRequest.py
parentsphinx documentation (diff)
downloadpyload-0a305f78abacdd38f5b9b9af4aa3c4c982da6895.tar.xz
closed #338
Diffstat (limited to 'module/network/HTTPRequest.py')
-rw-r--r--module/network/HTTPRequest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py
index 7904070e8..6707cc70e 100644
--- a/module/network/HTTPRequest.py
+++ b/module/network/HTTPRequest.py
@@ -97,11 +97,11 @@ class HTTPRequest():
else:
self.c.setopt(pycurl.PROXYTYPE, pycurl.PROXYTYPE_HTTP)
- self.c.setopt(pycurl.PROXY, str(proxy["address"])) #unicode issues...
+ self.c.setopt(pycurl.PROXY, str(proxy["address"]))
self.c.setopt(pycurl.PROXYPORT, proxy["port"])
if proxy["username"]:
- self.c.setopt(pycurl.PROXYUSERPWD, "%s:%s" % (proxy["username"], proxy["password"]))
+ self.c.setopt(pycurl.PROXYUSERPWD, str("%s:%s" % (proxy["username"], proxy["password"])))
if ipv6:
self.c.setopt(pycurl.IPRESOLVE, pycurl.IPRESOLVE_WHATEVER)