summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
Diffstat (limited to 'module/network')
-rw-r--r--module/network/HTTPRequest.py4
-rw-r--r--module/network/RequestFactory.py2
2 files changed, 3 insertions, 3 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)
diff --git a/module/network/RequestFactory.py b/module/network/RequestFactory.py
index 6bb7ced62..1a38ace43 100644
--- a/module/network/RequestFactory.py
+++ b/module/network/RequestFactory.py
@@ -78,7 +78,7 @@ class RequestFactory():
def getProxies(self):
""" returns a proxy list for the request classes """
- if not self.core.config["download"]["proxy"]:
+ if not self.core.config["proxy"]["proxy"]:
return {}
else:
type = "http"