Skip to content

Commit 423f279

Browse files
committed
Increase max header size, and allow custom node options
1 parent 93c5fb8 commit 423f279

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,12 @@ if (!amMainInstance) {
240240
stdio: ['inherit', 'pipe', 'pipe'],
241241
shell: isWindows, // Required to spawn a .cmd script
242242
windowsVerbatimArguments: false, // Fixes quoting in windows shells
243-
detached: !isWindows // Detach on Linux, so we can cleanly kill as a group
243+
detached: !isWindows, // Detach on Linux, so we can cleanly kill as a group
244+
env: Object.assign({}, process.env, {
245+
NODE_OPTIONS:
246+
process.env.HTTPTOOLKIT_NODE_OPTIONS || // Allow manually configuring node options
247+
"--max-http-header-size=102400" // By default, set max header size to 100KB
248+
})
244249
});
245250

246251
// Both not null because we pass 'pipe' for args 2 & 3 above.

0 commit comments

Comments
 (0)