From 49e7d95b9af5e0bfc15440dce57ffa9c83154191 Mon Sep 17 00:00:00 2001 From: Airing Date: Fri, 22 Jul 2022 00:08:42 +0800 Subject: [PATCH] doc: fix the error of request.getHeaderNames() the returns need to be lowercase --- 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 0c9117202498a8..ab5b8b5070d146 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -874,7 +874,7 @@ request.setHeader('Foo', 'bar'); request.setHeader('Cookie', ['foo=bar', 'bar=baz']); const headerNames = request.getHeaderNames(); -// headerNames === ['foo', 'Cookie'] +// headerNames === ['foo', 'cookie'] ``` ### `request.getHeaders()`