Skip to content

Commit

Permalink
doc: fix the error of request.getHeaderNames()
Browse files Browse the repository at this point in the history
the returns need to be lowercase
  • Loading branch information
airingursb committed Jul 21, 2022
1 parent 2e71ac6 commit 49e7d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand Down

0 comments on commit 49e7d95

Please sign in to comment.