Permalink
Browse files

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>
  • Loading branch information...
sam-github authored and MylesBorins committed Nov 28, 2018
1 parent 9b2ffc8 commit e6697335950562ba01a43c4ddf4c141628fb39a2
Showing with 7 additions and 1 deletion.
  1. +7 −1 doc/api/errors.md
@@ -1856,9 +1856,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.

0 comments on commit e669733

Please sign in to comment.