Turn off "Expect" header in test

Without this explicitly set, curl might decide to add a
`Expect: 100-continue` header if it deems the request too large.
See also: https://gms.tf/when-curl-sends-100-continue.html
This commit is contained in:
Derick Rethans 2022-04-29 15:09:32 +01:00
parent fb3cba494e
commit f7a5353531

View file

@ -31,6 +31,7 @@ $options = [
CURLOPT_FORBID_REUSE => 1,
CURLOPT_TIMEOUT => 1,
CURLOPT_POSTFIELDS => $fields,
CURLOPT_HTTPHEADER => [ 'Expect:' ],
];
$ch = curl_init();