Skip to content

Commit

Permalink
Add CURLOPT_CAINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
thebergamo committed May 14, 2015
1 parent 193ffbd commit be4b75b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Pagarme/RestClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public function __construct($params = array())
);

if(!$params["url"]) {
//
throw new PagarMe_Exception("You must set the URL to make a request.");
} else {
$this->url = $params["url"];
Expand Down Expand Up @@ -66,7 +65,7 @@ public function __construct($params = array())

curl_setopt($this->curl, CURLOPT_URL, $this->url);
curl_setopt($this->curl, CURLOPT_HTTPHEADER, $this->headers);
curl_setopt($this->curl, CURLOPT_CAPATH, realpath(__DIR__ . DIRECTORY_SEPARATOR . '../../certs'));
curl_setopt($this->curl, CURLOPT_CAINFO, dirname(__FILE__) . '/ca-certificates.crt');
}

public function run()
Expand Down

0 comments on commit be4b75b

Please sign in to comment.