1'use strict'; 2 3require('../common'); 4const assert = require('assert'); 5const { spawnSync } = require('child_process'); 6const http = require('http'); 7 8assert.strictEqual(http.maxHeaderSize, 16 * 1024); 9const child = spawnSync(process.execPath, ['--max-http-header-size=10', '-p', 10 'http.maxHeaderSize']); 11assert.strictEqual(+child.stdout.toString().trim(), 10); 12