Skip to content

Commit 1706a2d

Browse files
lpincaBridgeAR
authored andcommitted
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: nodejs#26465 Fixes: nodejs#26005 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
1 parent a2bed79 commit 1706a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ This method signals to the server that all of the response headers and body
11461146
have been sent; that server should consider this message complete.
11471147
The method, `response.end()`, MUST be called on each response.
11481148

1149-
If `data` is specified, it is equivalent to calling
1149+
If `data` is specified, it is similar in effect to calling
11501150
[`response.write(data, encoding)`][] followed by `response.end(callback)`.
11511151

11521152
If `callback` is specified, it will be called when the response stream

0 commit comments

Comments
 (0)