diff options
author | unknown <rosaxny@gmail.com> | 2020-03-27 18:34:24 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-03-29 23:38:57 +0300 |
commit | 400bc5cdc0b528a853c6b01b5b5ac993c078f9a2 (patch) | |
tree | c40c431a27ccba5ace3278011d8573383ccc3335 /doc/api | |
parent | 9b4306dc153c73b71cfcc58b14de04d3a53809de (diff) |
http: increase default header size from 8KB to 16KB
Fixes: https://github.com/nodejs/node/issues/27645
PR-URL: https://github.com/nodejs/node/pull/32520
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/cli.md | 6 | ||||
-rw-r--r-- | doc/api/http.md | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index cd7e8519717..386d9cdb96e 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -440,9 +440,13 @@ disappear in a non-semver-major release. ### `--max-http-header-size=size` <!-- YAML added: v11.6.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/32520 + description: Change maximum default size of HTTP headers from 8KB to 16KB. --> -Specify the maximum size, in bytes, of HTTP headers. Defaults to 8KB. +Specify the maximum size, in bytes, of HTTP headers. Defaults to 16KB. ### `--napi-modules` <!-- YAML diff --git a/doc/api/http.md b/doc/api/http.md index 3b45a36546d..fb2f2b32399 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -2059,7 +2059,7 @@ changes: * `maxHeaderSize` {number} Optionally overrides the value of [`--max-http-header-size`][] for requests received by this server, i.e. the maximum length of request headers in bytes. - **Default:** 8192 (8KB). + **Default:** 16384 (16KB). * `requestListener` {Function} * Returns: {http.Server} @@ -2213,7 +2213,7 @@ changes: * `maxHeaderSize` {number} Optionally overrides the value of [`--max-http-header-size`][] for requests received from the server, i.e. the maximum length of response headers in bytes. - **Default:** 8192 (8KB). + **Default:** 16384 (16KB). * `method` {string} A string specifying the HTTP request method. **Default:** `'GET'`. * `path` {string} Request path. Should include query string if any. |