]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix http basic authentication in Snoopy
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 18 Jul 2007 11:04:57 +0000 (12:04 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 18 Jul 2007 11:04:57 +0000 (12:04 +0100)
magpierss/extlib/Snoopy.class.inc

index fea182a22d49932aac56f468e8434d56c049d488..83a1e7395aa81c75f150ad4ea803011a802179c2 100644 (file)
@@ -517,7 +517,7 @@ class Snoopy
                if(!empty($body))       
                        $headers .= "Content-length: ".strlen($body)."\r\n";
                if(!empty($this->user) || !empty($this->pass))  
-                       $headers .= "Authorization: BASIC ".base64_encode($this->user.":".$this->pass)."\r\n";
+                       $headers .= "Authorization: Basic ".base64_encode($this->user.":".$this->pass)."\r\n";
 
                $headers .= "\r\n";