From: gggeek Date: Sun, 15 Oct 2017 11:36:13 +0000 (+0100) Subject: Docs X-Git-Tag: 4.2.2 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=66f3e08990ff3f0c738b828a00a22718d79c6c4a Docs --- diff --git a/NEWS b/NEWS index 647386d..74735bb 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 8d47208..a33fe65 100644 --- a/src/Client.php +++ b/src/Client.php @@ -873,7 +873,8 @@ class Client $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);