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
fix HTTP/1.1 417 Expectation Failed Bug
[plcapi.git]
/
src
/
Client.php
diff --git
a/src/Client.php
b/src/Client.php
index
d31e9f5
..
8d47208
100644
(file)
--- a/
src/Client.php
+++ b/
src/Client.php
@@
-873,6
+873,9
@@
class Client
$headers[] = $encodingHdr;
}
+ // Fixes the HTTP/1.1 417 Expectation Failed Bug
+ $headers[] = 'Expect:';
+
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
// timeout is borked
if ($timeout) {