feat: add rawHeaders to IncomingMessage (#31853)
* Add response.rawHeaders to docs for IncomingMessage * Remove trailing spaces * Implement raw headers, add tests * Fix lint issues * Add example from NodeJS docs * Fix lint issue in doc example * Add missing #
This commit is contained in:
parent
d1b48c0636
commit
d26d337bb8
4 changed files with 179 additions and 11 deletions
|
@ -40,7 +40,7 @@ struct Converter<network::mojom::HttpRawHeaderPairPtr> {
|
|||
v8::Isolate* isolate,
|
||||
const network::mojom::HttpRawHeaderPairPtr& pair) {
|
||||
gin_helper::Dictionary dict = gin::Dictionary::CreateEmpty(isolate);
|
||||
dict.Set("key", base::ToLowerASCII(pair->key));
|
||||
dict.Set("key", pair->key);
|
||||
dict.Set("value", pair->value);
|
||||
return dict.GetHandle();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue