Skip to content

Commit 0da5ac8

Browse files
nikolaykrashnikovaddaleax
authored andcommitted
doc: add HPE_UNEXPECTED_CONTENT_LENGTH error description
PR-URL: #34596 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ricky Zhou <[email protected]>
1 parent b77309f commit 0da5ac8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/api/errors.md

+11
Original file line numberDiff line numberDiff line change
@@ -2183,6 +2183,17 @@ malconfigured clients, if more than 8KB of HTTP header data is received then
21832183
HTTP parsing will abort without a request or response object being created, and
21842184
an `Error` with this code will be emitted.
21852185

2186+
<a id="HPE_UNEXPECTED_CONTENT_LENGTH"></a>
2187+
### `HPE_UNEXPECTED_CONTENT_LENGTH`
2188+
2189+
Server is sending both a `Content-Length` header and `Transfer-Encoding: chunked`.
2190+
2191+
`Transfer-Encoding: chunked` allows the server to maintain an HTTP persistent
2192+
connection for dynamically generated content.
2193+
In this case, the `Content-Length` HTTP header cannot be used.
2194+
2195+
Use `Content-Length` or `Transfer-Encoding: chunked`.
2196+
21862197
<a id="MODULE_NOT_FOUND"></a>
21872198
### `MODULE_NOT_FOUND`
21882199
<!-- YAML

0 commit comments

Comments
 (0)