Fix the RFC reference in the Host validation test

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.
This commit is contained in:
yhirose
2026-10-11 23:44:07 -04:00
parent 0acbee16dc
commit 5107381963
+1 -1
View File
@@ -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;