Skip to content

Commit

Permalink
fixes issue #2855 where cafile is not set in HttpSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
cvandeplas committed Feb 18, 2014
1 parent 4353507 commit f018e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Http/HttpSocket.php
Expand Up @@ -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'])) {
Expand Down

0 comments on commit f018e4f

Please sign in to comment.