feat: allow http-parser NODE_OPTION in packaged apps (#21694)

This commit is contained in:
Shelley Vohr 2020-01-09 08:09:14 -08:00 committed by GitHub
parent 75e39be916
commit bb054716c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -48,6 +48,7 @@ Unsupported options are:
```sh
--max-http-header-size
--http-parser
```
### `GOOGLE_API_KEY`

View file

@ -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;