Remove SSL Verify on Windows #12

Open
WengerK wants to merge 2 commits from WengerK/master into master
Showing only changes of commit 660b2ddcc2 - Show all commits

View file

@ -17,6 +17,11 @@ class GooglePlacesClient
curl_setopt_array($curl, $options); curl_setopt_array($curl, $options);
// Add certificate for Windows
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
}
$response = curl_exec($curl); $response = curl_exec($curl);
if ($error = curl_error($curl)) if ($error = curl_error($curl))