Skip to content

Commit f80563f

Browse files
committed
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: #26005
1 parent 0fa1165 commit f80563f

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)