summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-max-header-size.js
blob: 53bd58c4f179b6404fbb93416c3e4234b7ae6303 (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, 16 * 1024);
const child = spawnSync(process.execPath, ['--max-http-header-size=10', '-p',
                                           'http.maxHeaderSize']);
assert.strictEqual(+child.stdout.toString().trim(), 10);