From eb7fa4bcdd24032ecdb78293240b2f0b3a9b1588 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 a0437f329bb148..490b6bd1579172 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -3282,9 +3282,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:**