From d8e313efe82d39f7142ee44b13a8c24638e0091c Mon Sep 17 00:00:00 2001 From: inoway46 Date: Mon, 16 Nov 2026 01:40:11 +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 --- 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 af939001c9e5..85aef533b75a 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]])`