From 99f0fc42e9f7626e09426504aa534d61b77d66f2 Mon Sep 17 00:00:00 2001 From: Yuya Inoue <65857152+inoway46@users.noreply.github.com> Date: Wed, 18 Nov 2026 01:58:17 +0900 Subject: [PATCH] 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 Assisted-by: Claude Code PR-URL: https://github.com/nodejs/node/pull/67492 Reviewed-By: Luigi Pinca Reviewed-By: Tim Perry --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]])`