diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-17 20:08:20 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-17 20:08:20 +0200 |
commit | 8689900a386fb1c767350e70dc02774fc9cc39c5 (patch) | |
tree | 40f1cf8aff02c3bb43aa21e2a53cdd4f539d8173 /module/network | |
parent | new config options, webinterface test (diff) | |
download | pyload-8689900a386fb1c767350e70dc02774fc9cc39c5.tar.xz |
webinterface cache control, curl fix
Diffstat (limited to 'module/network')
-rwxr-xr-x | module/network/Request.py | 3 |
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]]) |