X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FClient.php;h=a33fe659f67faecf9a3301fcef0d62ac5594b94a;hb=refs%2Ftags%2F4.2.2;hp=8d4720835c8425119b592fc8f398aece4779a862;hpb=07b9c5f48b3bd64aadc8a9daa2c89a67154040a0;p=plcapi.git diff --git a/src/Client.php b/src/Client.php index 8d47208..a33fe65 100644 --- a/src/Client.php +++ b/src/Client.php @@ -873,7 +873,8 @@ class Client $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);