mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
parent
1d0d20e974
commit
b80e02c114
1 changed files with 6 additions and 2 deletions
|
@ -170,9 +170,13 @@ class CakeSocket {
|
|||
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'])) {
|
||||
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[] = 'CONNECT ' . $this->config['request']['uri']['host'] . ':' .
|
||||
$this->config['request']['uri']['port'] . ' HTTP/1.1';
|
||||
$req[] = 'Host: ' . $this->config['host'];
|
||||
$req[] = 'User-Agent: php proxy';
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue