Skip to content

Commit

Permalink
docs, http: minor format changes per review request
Browse files Browse the repository at this point in the history
  • Loading branch information
iSkore committed Apr 3, 2018
1 parent 3613e8d commit 190ef7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/api/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ An attempt was made to add more headers after the headers had already been sent.
### ERR_HTTP_INCOMING_SOCKET_ENCODING

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

<a id="ERR_HTTP_INVALID_HEADER_VALUE"></a>
### ERR_HTTP_INVALID_HEADER_VALUE
Expand Down Expand Up @@ -1702,3 +1702,5 @@ Creation of a [`zlib`][] object failed due to incorrect configuration.
[vm]: vm.html
[WHATWG Supported Encodings]: util.html#util_whatwg_supported_encodings
[`zlib`]: zlib.html

[rfc7230-3]: https://tools.ietf.org/html/rfc7230#section-3
1 change: 1 addition & 0 deletions lib/_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ function connectionListenerInternal(server, socket) {

// Override on to unconsume on `data`, `readable` listeners
socket.on = socketOnWrap;

socket.setEncoding = socketSetEncoding;

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

0 comments on commit 190ef7e

Please sign in to comment.