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:
42c180b
)
fix HTTP/1.1 417 Expectation Failed Bug
author
Elan Ruusamäe
<glen@delfi.ee>
Tue, 3 Oct 2017 08:23:53 +0000
(11:23 +0300)
committer
Elan Ruusamäe
<glen@delfi.ee>
Tue, 3 Oct 2017 08:23:57 +0000
(11:23 +0300)
this commonly happens when lighttpd is the backend server
src/Client.php
patch
|
blob
|
history
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) {