Skip to content

Commit ba3c6fb

Browse files
authored
Merge pull request #20 from wpdevteam/patch-1
Add cURL 7.62.0 compatibility
2 parents ecab9b8 + 48d2e2e commit ba3c6fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/MaxCDN.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ private function execute($selected_call, $method_type, $params) {
4747
// create curl resource
4848
$ch = curl_init();
4949

50+
// force curl http/1.1
51+
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
52+
5053
// set url
5154
curl_setopt($ch, CURLOPT_URL, $req_req);
5255

0 commit comments

Comments
 (0)