Skip to content

Commit f30d169

Browse files
sam-githubMylesBorins
authored andcommitted
doc: describe current HTTP header size limit
Document that the limit was changed from 80KB to 8KB in 1860352. Fixes: #24693 PR-URL: #24700 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
1 parent b7bb114 commit f30d169

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/api/errors.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1856,9 +1856,15 @@ Creation of a [`zlib`][] object failed due to incorrect configuration.
18561856

18571857
<a id="HPE_HEADER_OVERFLOW"></a>
18581858
### HPE_HEADER_OVERFLOW
1859+
<!-- YAML
1860+
changes:
1861+
- version: REPLACEME
1862+
pr-url: https://github.com/nodejs/node/commit/186035243fad247e3955f
1863+
description: Max header size in `http_parser` was set to 8KB.
1864+
-->
18591865

18601866
Too much HTTP header data was received. In order to protect against malicious or
1861-
malconfigured clients, if more than 80KB of HTTP header data is received then
1867+
malconfigured clients, if more than 8KB of HTTP header data is received then
18621868
HTTP parsing will abort without a request or response object being created, and
18631869
an `Error` with this code will be emitted.
18641870

0 commit comments

Comments
 (0)