git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
42c180b
)
Merge pull request #56 from glensc/accept-header
author
Gaetano Giunta
<giunta.gaetano@gmail.com>
Sun, 15 Oct 2017 11:32:45 +0000
(12:32 +0100)
committer
GitHub
<noreply@github.com>
Sun, 15 Oct 2017 11:32:45 +0000
(12:32 +0100)
fix HTTP/1.1 417 Expectation Failed Bug
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) {