Skip to content

Commit

Permalink
Fixes the turn_off_ssl_verification option so that it works with cURL.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmccune committed Jan 29, 2015
1 parent 9740569 commit dbcdc89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SendGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private function makeRequest($form) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $form);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'sendgrid/' . $this->version . ';php');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->options['turn_off_ssl_verification']);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, !$this->options['turn_off_ssl_verification']);

$response = curl_exec($ch);

Expand Down

0 comments on commit dbcdc89

Please sign in to comment.