doc: fix typo in http.md

the returns need to be lowercase

PR-URL: https://github.com/nodejs/node/pull/43933
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
This commit is contained in:
Airing authored and Michaël Zasso committed 2022-08-01 16:48:29 +02:00
1 parent 37cf3b9551
commit 86fb313fe8
1 file changed
+1 -1
+1 -1
View File
@@ -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()`