2018-12-05 19:59:12 -05:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
|
|
const { spawnSync } = require('child_process');
|
|
|
|
const http = require('http');
|
|
|
|
|
2020-03-27 11:34:24 -04:00
|
|
|
assert.strictEqual(http.maxHeaderSize, 16 * 1024);
|
2018-12-05 19:59:12 -05:00
|
|
|
const child = spawnSync(process.execPath, ['--max-http-header-size=10', '-p',
|
|
|
|
'http.maxHeaderSize']);
|
|
|
|
assert.strictEqual(+child.stdout.toString().trim(), 10);
|