Skip to content

Commit 190ef7e

Browse files
committed
docs, http: minor format changes per review request
PR-URL: nodejs#19344 Ref: https://tools.ietf.org/html/rfc7230#section-3 Ref: nodejs#18118 Ref: nodejs#18178 Ref: nodejs#19344
1 parent 3613e8d commit 190ef7e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

doc/api/errors.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ An attempt was made to add more headers after the headers had already been sent.
798798
### ERR_HTTP_INCOMING_SOCKET_ENCODING
799799

800800
An attempt was made to manipulate the encoding of an incoming request packet.
801-
This is forbidden by [RFC7230 Section 3](https://tools.ietf.org/html/rfc7230#section-3)
801+
This is forbidden by [RFC7230 Section 3][rfc7230-3]
802802

803803
<a id="ERR_HTTP_INVALID_HEADER_VALUE"></a>
804804
### ERR_HTTP_INVALID_HEADER_VALUE
@@ -1702,3 +1702,5 @@ Creation of a [`zlib`][] object failed due to incorrect configuration.
17021702
[vm]: vm.html
17031703
[WHATWG Supported Encodings]: util.html#util_whatwg_supported_encodings
17041704
[`zlib`]: zlib.html
1705+
1706+
[rfc7230-3]: https://tools.ietf.org/html/rfc7230#section-3

lib/_http_server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ function connectionListenerInternal(server, socket) {
384384

385385
// Override on to unconsume on `data`, `readable` listeners
386386
socket.on = socketOnWrap;
387+
387388
socket.setEncoding = socketSetEncoding;
388389

389390
// We only consume the socket if it has never been consumed before.

0 commit comments

Comments
 (0)