Skip to content

Commit

Permalink
Merge 660b2dd into c72e2b0
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Jun 11, 2015
2 parents c72e2b0 + 660b2dd commit e44f9a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/GooglePlacesClient.php
Expand Up @@ -17,6 +17,11 @@ public function get($url)

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);

if ($error = curl_error($curl))
Expand Down

0 comments on commit e44f9a5

Please sign in to comment.