X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FClient.php;h=8d4720835c8425119b592fc8f398aece4779a862;hb=433140493eb4f5c832ae4acc0d3ba844c32dd0d1;hp=d31e9f5ef966e40cf7e6ae25b991fdb91a726b22;hpb=42c180bece13d99ca97ebe842d059d7352d8e914;p=plcapi.git diff --git a/src/Client.php b/src/Client.php index d31e9f5..8d47208 100644 --- 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) {