summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-max-header-size.js
blob: 07fbe902963525a3ef678c291f4e00c300ee87ef (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';

require('../common');
const assert = require('assert');
const { spawnSync } = require('child_process');
const http = require('http');

assert.strictEqual(http.maxHeaderSize, 8 * 1024);
const child = spawnSync(process.execPath, ['--max-http-header-size=10', '-p',
                                           'http.maxHeaderSize']);
assert.strictEqual(+child.stdout.toString().trim(), 10);