From f9b05ff0b95de08b3509abac9cdba00da65085fc Mon Sep 17 00:00:00 2001 From: Guido Penta Date: Thu, 20 Jul 2023 22:54:53 +0200 Subject: [PATCH] doc: improve requireHostHeader --- 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:**