mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Move proxy code inside if (->connected)
This commit is contained in:
parent
7704efdb28
commit
15c80f7c3d
1 changed files with 13 additions and 14 deletions
|
@ -169,7 +169,6 @@ class CakeSocket {
|
|||
$this->connected = is_resource($this->connection);
|
||||
if ($this->connected) {
|
||||
stream_set_timeout($this->connection, $this->config['timeout']);
|
||||
}
|
||||
|
||||
if (!empty($this->config['request']) && $this->config['request']['uri']['scheme'] === 'https' && !empty($this->config['proxy'])) {
|
||||
$req = array();
|
||||
|
@ -188,7 +187,7 @@ class CakeSocket {
|
|||
|
||||
$this->enableCrypto('tls', 'client');
|
||||
}
|
||||
|
||||
}
|
||||
return $this->connected;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue