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

fix proxy CONNECT where HTTP 1.1 answer is given

parent b7cfeab6
No related branches found
No related tags found
No related merge requests found
......@@ -553,7 +553,7 @@ class HTTPClient {
}while($r_line != "\r\n" && $r_line != "\n");
$this->_debug('SSL Tunnel Response',$r_headers);
if(preg_match('/^HTTP\/1\.0 200/i',$r_headers)){
if(preg_match('/^HTTP\/1\.[01] 200/i',$r_headers)){
if (stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_SSLv3_CLIENT)) {
$requesturl = $requestinfo['path'];
return true;
......
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