You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2026/06/10 12:16:15 UTC

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

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