mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
feat: allow http-parser NODE_OPTION in packaged apps (#21694)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user