Skip to content

Commit 993b96b

Browse files
ikasumiwtBridgeAR
authored andcommitted
doc: fix wrong response.end() at request.socket
PR-URL: nodejs#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 87917ca commit 993b96b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

doc/api/http.md

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

641641
Reference to the underlying socket. Usually users will not want to access
642642
this property. In particular, the socket will not emit `'readable'` events
643-
because of how the protocol parser attaches to the socket. After
644-
`response.end()`, the property is nulled. The `socket` may also be accessed
645-
via `request.connection`.
643+
because of how the protocol parser attaches to the socket. The `socket`
644+
may also be accessed via `request.connection`.
646645

647646
Example:
648647

0 commit comments

Comments
 (0)