From a55779bc25ea88cf39a9132e0293aef0d6cb2a67 Mon Sep 17 00:00:00 2001 From: Cres Jie Date: Wed, 24 Apr 2019 05:23:43 +0800 Subject: [PATCH 1/2] Update MailChimp.php added empty Expect, in order to fixed patch request, which initially returns http 100-continue --- src/MailChimp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MailChimp.php b/src/MailChimp.php index f30a76a..a821d65 100644 --- a/src/MailChimp.php +++ b/src/MailChimp.php @@ -220,7 +220,8 @@ private function makeRequest($http_verb, $method, $args = array(), $timeout = se $httpHeader = array( 'Accept: application/vnd.api+json', 'Content-Type: application/vnd.api+json', - 'Authorization: apikey ' . $this->api_key + 'Authorization: apikey ' . $this->api_key, + "Expect:" ); if (isset($args["language"])) { From b21194a8613a4d8eb1f62cd34d1d35c2f1be5994 Mon Sep 17 00:00:00 2001 From: Cres Jie Date: Wed, 24 Apr 2019 05:24:20 +0800 Subject: [PATCH 2/2] Update MailChimp.php --- src/MailChimp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MailChimp.php b/src/MailChimp.php index a821d65..b310808 100644 --- a/src/MailChimp.php +++ b/src/MailChimp.php @@ -221,7 +221,7 @@ private function makeRequest($http_verb, $method, $args = array(), $timeout = se 'Accept: application/vnd.api+json', 'Content-Type: application/vnd.api+json', 'Authorization: apikey ' . $this->api_key, - "Expect:" + 'Expect:' ); if (isset($args["language"])) {