Skip to content

Commit

Permalink
doc: describe current HTTP header size limit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sam-github authored and targos committed Nov 29, 2018
1 parent 9e1c6eb commit 68dc100
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -1869,9 +1869,15 @@ Creation of a [`zlib`][] object failed due to incorrect configuration.

<a id="HPE_HEADER_OVERFLOW"></a>
### HPE_HEADER_OVERFLOW
<!-- YAML
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/commit/186035243fad247e3955f
description: Max header size in `http_parser` was set to 8KB.
-->

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

Expand Down

0 comments on commit 68dc100

Please sign in to comment.