From: Giannis Christodoulou Date: Wed, 10 Jun 2026 12:16:14 +0000 (+0000) Subject: test/modules/http2: Enrich test with cookie header X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=424cdf4d85335ebb96a73756a035c1c90b1d5d84;p=thirdparty%2Fapache%2Fhttpd.git test/modules/http2: Enrich test with cookie header git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935180 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/modules/http2/test_200_header_invalid.py b/test/modules/http2/test_200_header_invalid.py index adb203b5b6..a3c2928d59 100644 --- a/test/modules/http2/test_200_header_invalid.py +++ b/test/modules/http2/test_200_header_invalid.py @@ -168,11 +168,13 @@ class TestInvalidHeaders: conf.install() assert env.apache_restart() == 0 url = env.mkurl("https", "cgi", "/") - opt = [] - for i in range(21): - opt += ["-H", "x{0}: 1".format(i)] - r = env.curl_get(url, options=opt) - assert 431 == r.response["status"] + + for desc, opts in [ + ("regular", [v for i in range(21) for v in ("-H", f"x{i}: 1")]), + ("cookie", [v for i in range(21) for v in ("-H", f"cookie: c{i}=v{i}")]), + ]: + r = env.curl_get(url, options=opts) + assert r.response["status"] == 431, f"{desc} header failed" conf = H2Conf(env) conf.add(""" LimitRequestFields 0