Skip to content

Commit

Permalink
Fixing HTTP protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
dougblackjr committed Jun 26, 2020
1 parent d49679a commit cacd725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Podio.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static function setup($client_id, $client_secret, $options = array('sessi
'Accept' => 'application/json',
);
curl_setopt(self::$ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt(self::$ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt(self::$ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt(self::$ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt(self::$ch, CURLOPT_USERAGENT, 'Podio PHP Client/'.self::VERSION);
Expand Down Expand Up @@ -247,6 +248,7 @@ public static function request($method, $url, $attributes = array(), $options =
self::$stdout = fopen('php://stdout','w');
curl_setopt(self::$ch, CURLOPT_FILE, self::$stdout);
curl_setopt(self::$ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt(self::$ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
$raw_headers_size = curl_getinfo(self::$ch, CURLINFO_HEADER_SIZE);

fseek($result_handle, 0);
Expand Down

0 comments on commit cacd725

Please sign in to comment.