From 510738196332360ee20dc769a802bd21acab93b7 Mon Sep 17 00:00:00 2001 From: yhirose Date: Sun, 11 Oct 2026 23:44:07 -0400 Subject: [PATCH] Fix the RFC reference in the Host validation test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The rule that a client sends an empty Host value when the target URI has no authority is in RFC 9112 §3.2, not RFC 9110 §7.2. --- test/test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.cc b/test/test.cc index 0541ff72..0e1afb18 100644 --- a/test/test.cc +++ b/test/test.cc @@ -19716,7 +19716,7 @@ TEST(HostHeaderValidationTest, AmbiguousOrInvalidHostRejected) { "Host: my_service\r\n", "Host: [::1]:8080\r\n", "Host: [fe80::1%25eth0]\r\n", - "Host: \r\n", // RFC 9110 §7.2: the target URI has no authority + "Host: \r\n", // RFC 9112 §3.2: the target URI has no authority }; for (auto host_lines : accepted) { EXPECT_EQ("HTTP/1.1 200 OK", status_line(host_lines)) << host_lines;