Browse Source

Merge pull request #2856 from cvandeplas/master

fixes issue #2855 where cafile is not set in HttpSocket
Mark Story 12 years ago
parent
commit
97ebfd6341
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Network/Http/HttpSocket.php

+ 1 - 1
lib/Cake/Network/Http/HttpSocket.php

@@ -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'])) {