From a54fc308012581176aad8d515aeb9b41668335d2 Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Tue, 27 Dec 2016 09:58:26 +1300
Subject: [PATCH] curl http connections: always load cacert.pem since it's
 always available

---
 core/Http.php | 4 +---
 1 file changed, 1 insertion(+), 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()
-- 
GitLab