fix http basic authentication in Snoopy

This commit is contained in:
Andrew Dolgov 2007-07-18 12:04:57 +01:00
parent 4bc6480705
commit 58e481b479
1 changed files with 1 additions and 1 deletions

View 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";