From 8b79a71e7879e7065762c277002e854312e789e5 Mon Sep 17 00:00:00 2001 From: Aryn H Date: Tue, 25 Aug 2026 04:59:18 -0700 Subject: [PATCH] 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 PR-URL: https://github.com/nodejs/node/pull/65472 Reviewed-By: Luigi Pinca Reviewed-By: Tim Perry Reviewed-By: Deokjin Kim --- doc/api/http.md | 4 ++-- doc/api/https.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 6e6df57bbe1..905f7cb9897 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1124,7 +1124,7 @@ const hasContentType = request.hasHeader('content-type'); ### `request.maxHeadersCount` -* Type: {number} **Default:** `2000` +* Type: {number} **Default:** `1000` Limits maximum response headers count. If set to 0, no limit will be applied. @@ -1895,7 +1895,7 @@ added: v5.7.0 added: v0.7.0 --> -* Type: {number} **Default:** `2000` +* Type: {number} **Default:** `1000` Limits maximum incoming headers count. If set to 0, no limit will be applied. diff --git a/doc/api/https.md b/doc/api/https.md index b08e53d5995..242938d0c9d 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -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.