Skip to content

Commit

Permalink
fix proxy CONNECT where HTTP 1.1 answer is given
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Oct 20, 2013
1 parent b7cfeab commit f9fbe4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/HTTPClient.php
Expand Up @@ -553,7 +553,7 @@ function _ssltunnel(&$socket, &$requesturl){
}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;
Expand Down

0 comments on commit f9fbe4c

Please sign in to comment.