summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-10-20 21:46:02 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-10-20 21:46:02 +0200
commitf9fbe4cf2ef1298c185836461720fe1c88082118 (patch)
tree249112387a0ab619a4f13745080304c9a451d4f9 /inc/HTTPClient.php
parentb7cfeab63d3666a24fad96ae42669a2f55e9da03 (diff)
downloadrpg-f9fbe4cf2ef1298c185836461720fe1c88082118.tar.gz
rpg-f9fbe4cf2ef1298c185836461720fe1c88082118.tar.bz2
fix proxy CONNECT where HTTP 1.1 answer is given
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index b2621bdbb..96954fb47 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -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;