From 9e5edb0b2671c89c6459cea6cfe4ac67a79ac186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 11 Nov 2022 09:19:41 +0100 Subject: [PATCH] Update the HTTP headers test to check for 101 headers When we bumped the number of allowed HTTP headers to 100, we forgot to bump the number in the system test. Bump the number in the system test too. --- bin/tests/system/statschannel/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/statschannel/tests.sh b/bin/tests/system/statschannel/tests.sh index 4a95dfb99a..7d102af3c6 100644 --- a/bin/tests/system/statschannel/tests.sh +++ b/bin/tests/system/statschannel/tests.sh @@ -432,13 +432,13 @@ if [ -x "${CURL}" ] && ! ("${CURL}" --next 2>&1 | grep 'option --next: is unknow CURL_NEXT="${CURL}" fi -echo_i "Check HTTP with more than 10 headers ($n)" +echo_i "Check HTTP with more than 100 headers ($n)" ret=0 i=0 if [ -x "${CURL_NEXT}" ] ; then # build input stream. : > header.in$n - while test $i -lt 11 + while test $i -lt 101 do printf 'X-Bloat%d: VGhlIG1vc3QgY29tbW9uIHJlYXNvbiBmb3IgYmxvYXRpbmcgaXMgaGF2aW5nIGEgbG90IG9mIGdhcyBpbiB5b3VyIGd1dC4gCg==\r\n' $i >> header.in$n i=$((i+1))