diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-17 21:29:58 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-17 21:29:58 +0200 |
commit | 3b448a102bb7e3a96a6a861315686bb8c95ef6f5 (patch) | |
tree | 84f1fff0e966092781b3cd3b727855b20a252a1a /module/network | |
parent | ~ (diff) | |
download | pyload-3b448a102bb7e3a96a6a861315686bb8c95ef6f5.tar.xz |
~
Diffstat (limited to 'module/network')
-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: |