diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-12-26 23:58:26 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-12-27 00:00:12 +0300 |
commit | a54fc308012581176aad8d515aeb9b41668335d2 (patch) | |
tree | 6ef4c088d592f26a88d918fb7efe9babb9fb4b82 /core/Http.php | |
parent | db6cf994c2314dd568e5ef642c80b9025a1e9098 (diff) |
curl http connections: always load cacert.pem since it's always available
Diffstat (limited to 'core/Http.php')
-rw-r--r-- | core/Http.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Http.php b/core/Http.php index 79ee0d2af3..48e1fa14fa 100644 --- a/core/Http.php +++ b/core/Http.php @@ -792,9 +792,7 @@ class Http */ public static function configCurlCertificate(&$ch) { - if (file_exists(PIWIK_INCLUDE_PATH . '/core/DataFiles/cacert.pem')) { - @curl_setopt($ch, CURLOPT_CAINFO, PIWIK_INCLUDE_PATH . '/core/DataFiles/cacert.pem'); - } + @curl_setopt($ch, CURLOPT_CAINFO, PIWIK_INCLUDE_PATH . '/core/DataFiles/cacert.pem'); } public static function getUserAgent() |