From 8689900a386fb1c767350e70dc02774fc9cc39c5 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 17 Aug 2009 20:08:20 +0200 Subject: webinterface cache control, curl fix --- module/network/Request.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'module/network') 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]]) -- cgit v1.2.3