fixes issue #2855 where cafile is not set in HttpSocket

This commit is contained in:
Christophe Vandeplas 2014-02-18 09:39:56 +01:00
parent 4353507ebb
commit f018e4ff4d

View file

@ -684,7 +684,7 @@ class HttpSocket extends CakeSocket {
}
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'])) {