Skip to content

Commit

Permalink
http.IncomingMessage: fix forgotten 'message' to 'socket'
Browse files Browse the repository at this point in the history
  • Loading branch information
joozek78 committed Oct 15, 2015
1 parent 503f279 commit 7aa7be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/http.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ When a new TCP stream is established. `socket` is an object of type
`net.Socket`. Usually users will not want to access this event. In
particular, the socket will not emit `readable` events because of how
the protocol parser attaches to the socket. The `socket` can also be
accessed at `request.connection`.
accessed at `request.socket`.

### Event: 'close'

Expand Down Expand Up @@ -1020,7 +1020,7 @@ received. Only populated at the 'end' event.
* `msecs` {Number}
* `callback` {Function}

Calls `message.connection.setTimeout(msecs, callback)`.
Calls `message.socket.setTimeout(msecs, callback)`.

Returns `message`.

Expand Down

0 comments on commit 7aa7be0

Please sign in to comment.