Skip to content
Snippets Groups Projects
Commit a0b1ca93 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #665 from alexlehm/master

Fix https proxy authentication, the header was missing a colon so that
parents 537f332b 67f6ad6b
No related branches found
No related tags found
No related merge requests found
......@@ -552,7 +552,7 @@ class HTTPClient {
$request = "CONNECT {$requestinfo['host']}:{$requestinfo['port']} HTTP/1.0".HTTP_NL;
$request .= "Host: {$requestinfo['host']}".HTTP_NL;
if($this->proxy_user) {
$request .= 'Proxy-Authorization Basic '.base64_encode($this->proxy_user.':'.$this->proxy_pass).HTTP_NL;
$request .= 'Proxy-Authorization: Basic '.base64_encode($this->proxy_user.':'.$this->proxy_pass).HTTP_NL;
}
$request .= HTTP_NL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment