svn commit: r1935180 - httpd/httpd/trunk/test/modules/http2

[email protected] Wed, 10 Jun 2026 12:16:15 -0000
Newsgroups gmane.comp.apache.cvs
Message-ID <178109377521.513731.2141230709154845688@svn03-he-fi>
Author: ichristod
Date: Wed Jun 10 12:16:14 2026
New Revision: 1935180

Log:
test/modules/http2: Enrich test with cookie header

Modified:
   httpd/httpd/trunk/test/modules/http2/test_200_header_invalid.py

Modified: httpd/httpd/trunk/test/modules/http2/test_200_header_invalid.py
==============================================================================
--- httpd/httpd/trunk/test/modules/http2/test_200_header_invalid.py	Wed Jun 10 08:30:16 2026	(r1935179)
+++ httpd/httpd/trunk/test/modules/http2/test_200_header_invalid.py	Wed Jun 10 12:16:14 2026	(r1935180)
@@ -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