From f018e4ff4d2ad07e389164e1b858b6524b709424 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Tue, 18 Feb 2014 09:39:56 +0100 Subject: [PATCH] fixes issue #2855 where cafile is not set in HttpSocket --- lib/Cake/Network/Http/HttpSocket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Network/Http/HttpSocket.php b/lib/Cake/Network/Http/HttpSocket.php index 46fde7d7fc4..e4c0ad62a4c 100644 --- a/lib/Cake/Network/Http/HttpSocket.php +++ b/lib/Cake/Network/Http/HttpSocket.php @@ -684,7 +684,7 @@ protected function _configContext($host) { } unset($this->config[$key]); } - if (empty($this->_context['ssl']['cafile'])) { + if (empty($this->config['context']['ssl']['cafile'])) { $this->config['context']['ssl']['cafile'] = CAKE . 'Config' . DS . 'cacert.pem'; } if (!empty($this->config['context']['ssl']['verify_host'])) {