diff options
Diffstat (limited to 'module')
-rwxr-xr-x | module/network/Request.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/network/Request.py b/module/network/Request.py index a8087c899..d4d32a4a1 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -169,6 +169,7 @@ class Request: self.pw = pw if self.curl: + self.pycurl.setopt(pycurl.HTTPHEADER, ['Authorization: Basic ' + base64.encodestring(user + ':' + pw)[:-1]]) self.pycurl.setopt(pycurl.USERPWD, user + ":" + pw) self.pycurl.setopt(pycurl.HTTPAUTH, pycurl.HTTPAUTH_ANY) else: |