Skip to content
Snippets Groups Projects
Commit 5beb1a2c authored by Michael Klier's avatar Michael Klier
Browse files

Fix for Basic HTTP authentication

darcs-hash:20070908222540-23886-00d09dcbb5e3391686586043907dbeccea7f696d.gz
parent 1a58f811
No related branches found
No related tags found
No related merge requests found
......@@ -186,10 +186,10 @@ class HTTPClient {
$headers['Content-Length'] = strlen($post);
}
if($this->user) {
$headers['Authorization'] = 'BASIC '.base64_encode($this->user.':'.$this->pass);
$headers['Authorization'] = 'Basic '.base64_encode($this->user.':'.$this->pass);
}
if($this->proxy_user) {
$headers['Proxy-Authorization'] = 'BASIC '.base64_encode($this->proxy_user.':'.$this->proxy_pass);
$headers['Proxy-Authorization'] = 'Basic '.base64_encode($this->proxy_user.':'.$this->proxy_pass);
}
// stop time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment