From 86fb313fe8befabdb30580c6d177f944865ea3d1 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 539ffb67683200..d90be4c4818877 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -866,7 +866,7 @@ request.setHeader('Foo', 'bar'); request.setHeader('Cookie', ['foo=bar', 'bar=baz']); const headerNames = request.getHeaderNames(); -// headerNames === ['foo', 'Cookie'] +// headerNames === ['foo', 'cookie'] ``` ### `request.getHeaders()`