From b9cfaa3c65d5b59b8a6d2907ff9a34baeea0ec97 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 6 Mar 2019 10:26:33 +0100 Subject: [PATCH] doc: fix misleading sentence in http.md Calling `response.end(data)` is not 100% equivalent to calling `response.write(data)` followed by `response.end()`. PR-URL: https://github.com/nodejs/node/pull/26465 Fixes: https://github.com/nodejs/node/issues/26005 Reviewed-By: James M Snell Reviewed-By: Sam Roberts --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index a9441a44bb9794..ebc00fdf3a832b 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1140,7 +1140,7 @@ This method signals to the server that all of the response headers and body have been sent; that server should consider this message complete. The method, `response.end()`, MUST be called on each response. -If `data` is specified, it is equivalent to calling +If `data` is specified, it is similar in effect to calling [`response.write(data, encoding)`][] followed by `response.end(callback)`. If `callback` is specified, it will be called when the response stream