From a86b66c8b43f0d02f690865a9f837e552d53f813 Mon Sep 17 00:00:00 2001 From: Airing Date: Sun, 24 Jul 2022 00:50:39 +0800 Subject: [PATCH] doc: fix typo in http.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the returns need to be lowercase PR-URL: https://github.com/nodejs/node/pull/43933 Reviewed-By: Paolo Insogna Reviewed-By: Matteo Collina Reviewed-By: Mestery Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca Reviewed-By: Harshitha K P --- 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 240b2051be42dc..f79aa7cbd0ccae 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -872,7 +872,7 @@ request.setHeader('Foo', 'bar'); request.setHeader('Cookie', ['foo=bar', 'bar=baz']); const headerNames = request.getHeaderNames(); -// headerNames === ['foo', 'Cookie'] +// headerNames === ['foo', 'cookie'] ``` ### `request.getHeaders()`