Skip to content

Commit

Permalink
feat: allow http-parser NODE_OPTION in packaged apps (electron#21694)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jan 9, 2020
1 parent 75e39be commit bb05471
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/api/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Unsupported options are:

```sh
--max-http-header-size
--http-parser
```

### `GOOGLE_API_KEY`
Expand Down
3 changes: 2 additions & 1 deletion shell/common/node_bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bb05471

Please sign in to comment.