Skip to content

Commit f7a5353

Browse files
committed
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
1 parent fb3cba4 commit f7a5353

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/curl/tests/curl_postfields_array.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ $options = [
3131
CURLOPT_FORBID_REUSE => 1,
3232
CURLOPT_TIMEOUT => 1,
3333
CURLOPT_POSTFIELDS => $fields,
34+
CURLOPT_HTTPHEADER => [ 'Expect:' ],
3435
];
3536

3637
$ch = curl_init();

0 commit comments

Comments
 (0)