From 66f3e08990ff3f0c738b828a00a22718d79c6c4a Mon Sep 17 00:00:00 2001 From: gggeek Date: Sun, 15 Oct 2017 12:36:13 +0100 Subject: [PATCH] Docs --- NEWS | 5 +++++ src/Client.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 647386df..74735bba 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +XML-RPC for PHP version 4.2.2 - 2017/10/15 + +* fixed: compatibility with Nginx target servers when using client in cURL mode and request body size > 1024 bytes (issue #56) + + XML-RPC for PHP version 4.2.1 - 2017/9/3 * fixed: compatibility with php 7.2 (issue #55) diff --git a/src/Client.php b/src/Client.php index 8d472083..a33fe659 100644 --- a/src/Client.php +++ b/src/Client.php @@ -873,7 +873,8 @@ protected function sendPayloadCURL($req, $server, $port, $timeout = 0, $username $headers[] = $encodingHdr; } - // Fixes the HTTP/1.1 417 Expectation Failed Bug + // Fix the HTTP/1.1 417 Expectation Failed Bug (curl by default adds a 'Expect: 100-continue' header when POST + // size exceeds 1025 bytes, apparently) $headers[] = 'Expect:'; curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);