Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0da5ac8

Browse filesBrowse files
nikolaykrashnikovaddaleax
authored andcommitted
doc: add HPE_UNEXPECTED_CONTENT_LENGTH error description
PR-URL: #34596 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
1 parent b77309f commit 0da5ac8
Copy full SHA for 0da5ac8

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/errors.md‎

Copy file name to clipboardExpand all lines: doc/api/errors.md
+11Lines changed: 11 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.