From f80563f7f11a19db82dbd55d52bd87cb8eb78d9c 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()`. Fixes: https://github.com/nodejs/node/issues/26005 --- 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 8a9d9bafda8e93..ebe087e99e7f44 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1146,7 +1146,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