doc: fix default limit of maxHeadersCount

The documented limit of 2000 refers to header pairs (counting both
keys and values), which gives an effective limit of 1000 headers.

This applies to both client and server; they have the same mechanism.

Signed-off-by: Aryn H <arynh@protonmail.com>
PR-URL: https://github.com/nodejs/node/pull/65472
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
This commit is contained in:
Aryn H authored and Antoine du Hamel committed 2026-09-19 12:07:51 +02:00
1 parent 56b1252a54
commit 8b79a71e78
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -197,7 +197,7 @@ This method is identical to [`server.listen()`][] from [`net.Server`][].
### `server.maxHeadersCount`
* Type: {number} **Default:** `2000`
* Type: {number} **Default:** `1000`
See [`server.maxHeadersCount`][] in the `node:http` module.