From d9ce804ef4bcc8f48931c5f267d3962a45b17ebd Mon Sep 17 00:00:00 2001 From: ikasumiwt Date: Fri, 13 Apr 2018 01:31:03 +0900 Subject: [PATCH] doc: fix wrong response.end() at request.socket --- doc/api/http.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/api/http.md b/doc/api/http.md index 91309e79fdbace..5d602704b30299 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -677,9 +677,8 @@ added: v0.3.0 Reference to the underlying socket. Usually users will not want to access this property. In particular, the socket will not emit `'readable'` events -because of how the protocol parser attaches to the socket. After -`response.end()`, the property is nulled. The `socket` may also be accessed -via `request.connection`. +because of how the protocol parser attaches to the socket. The `socket` +may also be accessed via `request.connection`. Example: