Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
http: removed extraneous argument 's'
  • Loading branch information
jacksonchui committed Nov 7, 2018
commit c8844bc80d3a8acb7f2c1da62e6fab1b38bfffe3
2 changes: 1 addition & 1 deletion test/abort/test-http-parser-consume.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { spawn } = require('child_process');
if (process.argv[2] === 'child') {
// sub-process
const server = createServer(common.mustCall((_, res) => res.end('h')));
server.listen(0, common.mustCall((s) => {
server.listen(0, common.mustCall(() => {
const rr = get({ port: server.address().port }, common.mustCall(() => {
// This bad input (0) should abort the parser and the process
rr.parser.consume(0);
Expand Down