Skip to content

Commit 99f0fc4

Browse files
inoway46aduh95
authored andcommitted
doc: fix http response.writeInformation() signature
The second argument is always treated as `headers`, so `callback` cannot be passed without it. Signed-off-by: inoway46 <inoueyuya416@gmail.com> Assisted-by: Claude Code PR-URL: #67492 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com>
1 parent ef7b498 commit 99f0fc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎doc/api/http.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ been transmitted are equal or not.
27102710
Attempting to set a header field name or value that contains invalid characters
27112711
will result in a [`TypeError`][] being thrown.
27122712

2713-
### `response.writeInformation(statusCode[, headers][, callback])`
2713+
### `response.writeInformation(statusCode[, headers[, callback]])`
27142714

27152715
<!-- YAML
27162716
added:

0 commit comments

Comments
 (0)