diff options
Diffstat (limited to 'module/network/Request.py')
-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]]) |