feat: allow http-parser NODE_OPTION in packaged apps (#21694)
This commit is contained in:
parent
75e39be916
commit
bb054716c9
2 changed files with 3 additions and 1 deletions
|
@ -48,6 +48,7 @@ Unsupported options are:
|
|||
|
||||
```sh
|
||||
--max-http-header-size
|
||||
--http-parser
|
||||
```
|
||||
|
||||
### `GOOGLE_API_KEY`
|
||||
|
|
|
@ -144,7 +144,8 @@ void SetNodeOptions(base::Environment* env) {
|
|||
"--force-fips", "--enable-fips"};
|
||||
|
||||
// Subset of options allowed in packaged apps
|
||||
const std::set<std::string> allowed_in_packaged = {"--max-http-header-size"};
|
||||
const std::set<std::string> allowed_in_packaged = {"--max-http-header-size",
|
||||
"--http-parser"};
|
||||
|
||||
if (env->HasVar("NODE_OPTIONS")) {
|
||||
std::string options;
|
||||
|
|
Loading…
Reference in a new issue