Skip to content

Commit 5e47308

Browse files
GuidoPentaRafaelGSS
authored andcommitted
doc: improve requireHostHeader
PR-URL: #48860 Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 0cd2393 commit 5e47308

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/http.md

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

0 commit comments

Comments
 (0)