summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-17 20:08:20 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-17 20:08:20 +0200
commit8689900a386fb1c767350e70dc02774fc9cc39c5 (patch)
tree40f1cf8aff02c3bb43aa21e2a53cdd4f539d8173 /module/network
parentnew config options, webinterface test (diff)
downloadpyload-8689900a386fb1c767350e70dc02774fc9cc39c5.tar.xz
webinterface cache control, curl fix
Diffstat (limited to 'module/network')
-rwxr-xr-xmodule/network/Request.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/network/Request.py b/module/network/Request.py
index 0427bbe25..11c8fae89 100755
--- a/module/network/Request.py
+++ b/module/network/Request.py
@@ -164,8 +164,7 @@ class Request:
def add_auth(self, user, pw):
if self.curl:
- self.pycurl.setopt(pycurl.USERNAME, user)
- self.pycurl.setopt(pycurl.PASSWORD, pw)
+ self.pycurl.setopt(pycurl.USERPWD, user + ":" + pw)
self.pycurl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_ANY)
else:
self.downloader.addheaders.append(['Authorization', 'Basic ' + base64.encodestring(user + ':' + pw)[:-1]])