]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* adding tests to verfiy header field name length checks
authorStefan Eissing <icing@apache.org>
Mon, 13 Sep 2021 10:27:22 +0000 (10:27 +0000)
committerStefan Eissing <icing@apache.org>
Mon, 13 Sep 2021 10:27:22 +0000 (10:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893306 13f79535-47bb-0310-9956-ffa450edef68

test/modules/http2/test_200_header_invalid.py

index 1b97fa67bb6e425505c22f96805df213ae595634..f0fe3772726e87c919f5ad8c1761b57c9499a6a8 100644 (file)
@@ -60,6 +60,11 @@ class TestStore:
         assert 200 == r.response["status"]
         r = env.curl_get(url, options=["-H", "x: %sx" % (val[:8188])])
         assert 431 == r.response["status"]
+        # same with field name
+        r = env.curl_get(url, options=["-H", "y%s: 1" % (val[:8186])])
+        assert 200 == r.response["status"]
+        r = env.curl_get(url, options=["-H", "y%s: 1" % (val[:8188])])
+        assert 431 == r.response["status"]
 
     # test header field lengths check, LimitRequestFieldSize (default 8190)
     def test_200_11(self, env):