From 471808e902e9400827f9a7eee050278a82bde728 Mon Sep 17 00:00:00 2001 From: Aryn H Date: Fri, 21 Aug 2026 13:26:33 -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 --- 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 b9d2fe4320da..5b3ccae4753c 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1127,7 +1127,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. @@ -1914,7 +1914,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 cdd8aad956ed..eba303b6600a 100644 --- a/doc/api/https.md +++ b/doc/api/https.md @@ -199,7 +199,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.