git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Docs
[plcapi.git]
/
src
/
Client.php
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);