Skip to content

Commit 0a976ec

Browse files
lpincaBethGriggs
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: #26465 Fixes: #26005 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sam Roberts <[email protected]>
1 parent 4b3e948 commit 0a976ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ This method signals to the server that all of the response headers and body
11201120
have been sent; that server should consider this message complete.
11211121
The method, `response.end()`, MUST be called on each response.
11221122

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

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

0 commit comments

Comments
 (0)