From f79e163105e82b7d5b1c3bd98df976b6fe2f5c90 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Mon, 13 Sep 2021 10:27:22 +0000 Subject: [PATCH] * 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 --- test/modules/http2/test_200_header_invalid.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- 2.47.3