Skip to content

Commit

Permalink
Merge pull request #2 from ohgoodlord/feature/set-curl-version
Browse files Browse the repository at this point in the history
Set curl HTTP version to 1.1
  • Loading branch information
AlexandruGG authored Aug 7, 2020
2 parents 99c8216 + 425fd05 commit fb57d55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Podio.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static function setup($client_id, $client_secret, $options = array('sessi
self::$headers = array(
'Accept' => 'application/json',
);
curl_setopt(self::$ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt(self::$ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt(self::$ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt(self::$ch, CURLOPT_SSL_VERIFYHOST, 2);
Expand Down

0 comments on commit fb57d55

Please sign in to comment.