summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-17 21:29:58 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-17 21:29:58 +0200
commit3b448a102bb7e3a96a6a861315686bb8c95ef6f5 (patch)
tree84f1fff0e966092781b3cd3b727855b20a252a1a
parent~ (diff)
downloadpyload-3b448a102bb7e3a96a6a861315686bb8c95ef6f5.tar.xz
~
-rwxr-xr-xmodule/network/Request.py1
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: