summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
authorMichael Klier <chi@chimeric.de>2007-09-09 00:25:40 +0200
committerMichael Klier <chi@chimeric.de>2007-09-09 00:25:40 +0200
commit5beb1a2c2cff9b3100da215c30d3906deda02068 (patch)
tree230a0025e949963ffad050508fa37744dab43827 /inc/HTTPClient.php
parent1a58f8112fd940be413a68db76322c85c3230918 (diff)
downloadrpg-5beb1a2c2cff9b3100da215c30d3906deda02068.tar.gz
rpg-5beb1a2c2cff9b3100da215c30d3906deda02068.tar.bz2
Fix for Basic HTTP authentication
darcs-hash:20070908222540-23886-00d09dcbb5e3391686586043907dbeccea7f696d.gz
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index 795c12581..26edeb491 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -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