From: Stefan Eissing Date: Mon, 13 Sep 2021 10:27:22 +0000 (+0000) Subject: * adding tests to verfiy header field name length checks X-Git-Tag: 2.5.0-alpha2-ci-test-only~811 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f79e163105e82b7d5b1c3bd98df976b6fe2f5c90;p=thirdparty%2Fapache%2Fhttpd.git * adding tests to verfiy header field name length checks git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893306 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 1b97fa67bb6..f0fe3772726 100644 --- a/test/modules/http2/test_200_header_invalid.py +++ b/test/modules/http2/test_200_header_invalid.py @@ -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):