Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions lib/Splash/Chargify/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function setCurl($curl) {
public function getCurl() {
if ($this->curl === null) {
$this->curl = curl_init();

curl_setopt_array($this->curl, array(
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => 2,
Expand All @@ -158,6 +158,9 @@ public function getCurl() {
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_TIMEOUT => 30,
//Using integer value instead constant because in CentOS
//Curl uses NSS and there CURL_SSLVERSION_TLSv1_2 is undefined
CURLOPT_SSLVERSION => 6,
));
}

Expand Down Expand Up @@ -263,4 +266,4 @@ protected function getCacheKey($uri, $data, $method, $hydrate) {

return null;
}
}
}