mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
fb3cba494e
commit
f7a5353531
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ $options = [
|
|||
CURLOPT_FORBID_REUSE => 1,
|
||||
CURLOPT_TIMEOUT => 1,
|
||||
CURLOPT_POSTFIELDS => $fields,
|
||||
CURLOPT_HTTPHEADER => [ 'Expect:' ],
|
||||
];
|
||||
|
||||
$ch = curl_init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue