From 36c72c8b2fb03414e02ffd8402c05129647ce123 Mon Sep 17 00:00:00 2001 From: Guido Penta <119898224+GuidoPenta@users.noreply.github.com> Date: Tue, 25 Jul 2023 09:19:44 +0200 Subject: [PATCH] doc: improve requireHostHeader PR-URL: https://github.com/nodejs/node/pull/48860 Reviewed-By: Paolo Insogna Reviewed-By: Matteo Collina Reviewed-By: Marco Ippolito Reviewed-By: Luigi Pinca --- doc/api/http.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 785f154f9e2f72..bfd79be64600f9 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3284,9 +3284,10 @@ changes: the entire request from the client. See [`server.requestTimeout`][] for more information. **Default:** `300000`. - * `requireHostHeader` {boolean} It forces the server to respond with - a 400 (Bad Request) status code to any HTTP/1.1 request message - that lacks a Host header (as mandated by the specification). + * `requireHostHeader` {boolean} If set to `true`, it forces the server to + respond with a 400 (Bad Request) status code to any HTTP/1.1 + request message that lacks a Host header + (as mandated by the specification). **Default:** `true`. * `ServerResponse` {http.ServerResponse} Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`. **Default:**