Skip to content

Commit 36c72c8

Browse files
authored
doc: improve requireHostHeader
PR-URL: #48860 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 9edea97 commit 36c72c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/http.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3284,9 +3284,10 @@ changes:
32843284
the entire request from the client.
32853285
See [`server.requestTimeout`][] for more information.
32863286
**Default:** `300000`.
3287-
* `requireHostHeader` {boolean} It forces the server to respond with
3288-
a 400 (Bad Request) status code to any HTTP/1.1 request message
3289-
that lacks a Host header (as mandated by the specification).
3287+
* `requireHostHeader` {boolean} If set to `true`, it forces the server to
3288+
respond with a 400 (Bad Request) status code to any HTTP/1.1
3289+
request message that lacks a Host header
3290+
(as mandated by the specification).
32903291
**Default:** `true`.
32913292
* `ServerResponse` {http.ServerResponse} Specifies the `ServerResponse` class
32923293
to be used. Useful for extending the original `ServerResponse`. **Default:**

0 commit comments

Comments
 (0)