Skip to content

Commit b9cfaa3

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: #26465 Fixes: #26005 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
1 parent 143dbb3 commit b9cfaa3

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
@@ -1140,7 +1140,7 @@ This method signals to the server that all of the response headers and body
11401140
have been sent; that server should consider this message complete.
11411141
The method, `response.end()`, MUST be called on each response.
11421142

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

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

0 commit comments

Comments
 (0)