Skip to content

Commit fbf9e06

Browse files
ikasumiwtjasnell
authored andcommitted
doc: fix wrong response.end() at request.socket
PR-URL: #19507 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent e9a33da commit fbf9e06

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/http.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -676,9 +676,8 @@ added: v0.3.0
676676

677677
Reference to the underlying socket. Usually users will not want to access
678678
this property. In particular, the socket will not emit `'readable'` events
679-
because of how the protocol parser attaches to the socket. After
680-
`response.end()`, the property is nulled. The `socket` may also be accessed
681-
via `request.connection`.
679+
because of how the protocol parser attaches to the socket. The `socket`
680+
may also be accessed via `request.connection`.
682681

683682
Example:
684683

0 commit comments

Comments
 (0)