From 5beb1a2c2cff9b3100da215c30d3906deda02068 Mon Sep 17 00:00:00 2001 From: Michael Klier Date: Sun, 9 Sep 2007 00:25:40 +0200 Subject: Fix for Basic HTTP authentication darcs-hash:20070908222540-23886-00d09dcbb5e3391686586043907dbeccea7f696d.gz --- inc/HTTPClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/HTTPClient.php') 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 -- cgit v1.2.3