Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Oct 15, 2017
1 parent 07b9c5f commit 66f3e08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 2 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 66f3e08

Please sign in to comment.