From 4a4728b44dcede3bfb257f75cd2dde0c2485a8bd Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Fri, 11 Dec 2015 10:28:53 +0100 Subject: [PATCH] Fix SSL via proxy --- lib/Cake/Network/CakeSocket.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Cake/Network/CakeSocket.php b/lib/Cake/Network/CakeSocket.php index a8626386c..0c52b61eb 100644 --- a/lib/Cake/Network/CakeSocket.php +++ b/lib/Cake/Network/CakeSocket.php @@ -137,6 +137,9 @@ class CakeSocket { if (!empty($this->config['protocol'])) { $scheme = $this->config['protocol'] . '://'; } + if (!empty($this->config['proxy'])) { + $scheme = 'tcp://'; + } $host = $this->config['host']; if (isset($this->config['request']['uri']['host'])) {