Commit 4415e2fc771 for nodejs
commit 4415e2fc771274644552d2a1b5faf44cf81f106c
Author: Yuya Inoue <65857152+inoway46@users.noreply.github.com>
Date: Wed Nov 18 01:58:17 2026 +0900
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: https://github.com/nodejs/node/pull/67492
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
diff --git a/doc/api/http.md b/doc/api/http.md
index af939001c9e..85aef533b75 100644
--- a/doc/api/http.md
+++ b/doc/api/http.md
@@ -2710,7 +2710,7 @@ been transmitted are equal or not.
Attempting to set a header field name or value that contains invalid characters
will result in a [`TypeError`][] being thrown.
-### `response.writeInformation(statusCode[, headers][, callback])`
+### `response.writeInformation(statusCode[, headers[, callback]])`
<!-- YAML
added: