diff --git a/lib/Cake/Network/CakeSocket.php b/lib/Cake/Network/CakeSocket.php index 7ded14569..01e074589 100644 --- a/lib/Cake/Network/CakeSocket.php +++ b/lib/Cake/Network/CakeSocket.php @@ -171,7 +171,7 @@ class CakeSocket { 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[] = 'CONNECT '. $this->config['request']['uri']['host'] . ':' . $this->config['request']['uri']['port'] . ' HTTP/1.1'; $req[] = 'Host: ' . $this->config['host']; @@ -181,7 +181,7 @@ class CakeSocket { while(true) { $s = rtrim(fgets($this->connection, 4096)); - if(preg_match('/^$/', $s)) { + if (preg_match('/^$/', $s)) { break; } }