mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 14:11:29 +00:00
fix http basic authentication in Snoopy
This commit is contained in:
@@ -517,7 +517,7 @@ class Snoopy
|
|||||||
if(!empty($body))
|
if(!empty($body))
|
||||||
$headers .= "Content-length: ".strlen($body)."\r\n";
|
$headers .= "Content-length: ".strlen($body)."\r\n";
|
||||||
if(!empty($this->user) || !empty($this->pass))
|
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";
|
$headers .= "\r\n";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user