Docs 4.2.2
authorgggeek <giunta.gaetano@gmail.com>
Sun, 15 Oct 2017 11:36:13 +0000 (12:36 +0100)
committergggeek <giunta.gaetano@gmail.com>
Sun, 15 Oct 2017 11:36:13 +0000 (12:36 +0100)
NEWS
src/Client.php

diff --git a/NEWS b/NEWS
index 647386d..74735bb 100644 (file)
--- 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)
index 8d47208..a33fe65 100644 (file)
@@ -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);