mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Strict === and space
This commit is contained in:
parent
bb8e0ae835
commit
3995c70046
1 changed files with 2 additions and 2 deletions
|
@ -171,7 +171,7 @@ class CakeSocket {
|
||||||
stream_set_timeout($this->connection, $this->config['timeout']);
|
stream_set_timeout($this->connection, $this->config['timeout']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($this->config['request']) && $this->config['request']['uri']['scheme'] == 'https' && !empty($this->config['proxy'])) {
|
if (!empty($this->config['request']) && $this->config['request']['uri']['scheme'] === 'https' && !empty($this->config['proxy'])) {
|
||||||
$req = array();
|
$req = array();
|
||||||
$req[] = 'CONNECT '. $this->config['request']['uri']['host'] . ':' . $this->config['request']['uri']['port'] . ' HTTP/1.1';
|
$req[] = 'CONNECT '. $this->config['request']['uri']['host'] . ':' . $this->config['request']['uri']['port'] . ' HTTP/1.1';
|
||||||
$req[] = 'Host: ' . $this->config['host'];
|
$req[] = 'Host: ' . $this->config['host'];
|
||||||
|
@ -181,7 +181,7 @@ class CakeSocket {
|
||||||
|
|
||||||
while(true) {
|
while(true) {
|
||||||
$s = rtrim(fgets($this->connection, 4096));
|
$s = rtrim(fgets($this->connection, 4096));
|
||||||
if(preg_match('/^$/', $s)) {
|
if (preg_match('/^$/', $s)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue