Skip to content

Commit

Permalink
Strict === and space
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieB2B authored and markstory committed Mar 24, 2015
1 parent bb8e0ae commit 3995c70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Network/CakeSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function connect() {
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'];
Expand All @@ -181,7 +181,7 @@ public function connect() {

while(true) {
$s = rtrim(fgets($this->connection, 4096));
if(preg_match('/^$/', $s)) {
if (preg_match('/^$/', $s)) {
break;
}
}
Expand Down

0 comments on commit 3995c70

Please sign in to comment.