Skip to content

Commit 0e8773a

Browse files
committed
Merge pull request #39 from esleducation/master
Added CURLOPT_HTTP_VERSION
2 parents c2ca651 + afdafe0 commit 0e8773a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Drewm/MailChimp.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
/**
66
* Super-simple, minimum abstraction MailChimp API v2 wrapper
7-
*
7+
*
88
* Uses curl if available, falls back to file_get_contents and HTTP stream.
99
* This probably has more comments than code.
1010
*
1111
* Contributors:
1212
* Michael Minor <me@pixelbacon.com>
1313
* Lorna Jane Mitchell, github.com/lornajane
14-
*
15-
* @author Drew McLellan <drew.mclellan@gmail.com>
14+
*
15+
* @author Drew McLellan <drew.mclellan@gmail.com>
1616
* @version 1.1.1
1717
*/
1818
class MailChimp
@@ -66,6 +66,7 @@ private function makeRequest($method, $args = array(), $timeout = 10)
6666
curl_setopt($ch, CURLOPT_POST, true);
6767
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->verify_ssl);
6868
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
69+
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
6970
$result = curl_exec($ch);
7071
curl_close($ch);
7172
} else {

0 commit comments

Comments
 (0)