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
  • Loading branch information
sam-github committed Nov 28, 2018
1 parent 3337836 commit 19cdee8
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 @@ -1880,9 +1880,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: deps,http: http_parser set max header size 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 19cdee8

Please sign in to comment.