git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07b9c5f
)
Docs
4.2.2
author
gggeek
<giunta.gaetano@gmail.com>
Sun, 15 Oct 2017 11:36:13 +0000
(12:36 +0100)
committer
gggeek
<giunta.gaetano@gmail.com>
Sun, 15 Oct 2017 11:36:13 +0000
(12:36 +0100)
NEWS
patch
|
blob
|
history
src/Client.php
patch
|
blob
|
history
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)
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
(file)
--- a/
src/Client.php
+++ b/
src/Client.php
@@
-873,7
+873,8
@@
class Client
$headers[] = $encodingHdr;
}
$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);
$headers[] = 'Expect:';
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);