Skip to content

Commit 4f94095

Browse files
committed
http: remove extra comment
1 parent 226c68c commit 4f94095

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/_http_server.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -908,9 +908,7 @@ function parserOnIncoming(server, socket, state, req, keepAlive) {
908908

909909
// From RFC 2730 5.4 https://datatracker.ietf.org/doc/html/rfc7230#section-5.4
910910
// A server MUST respond with a 400 (Bad Request) status code to any
911-
// HTTP/1.1 request message that lacks a Host header field and to any
912-
// request message that contains more than one Host header field or a
913-
// Host header field with an invalid field-value.
911+
// HTTP/1.1 request message that lacks a Host header field
914912
if (req.headers.host === undefined && isHttp11) {
915913
res.writeHead(400);
916914
res.end();

0 commit comments

Comments
 (0)