mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 11:29:35 +00:00

The http tests seem especially prone to including unused variables. This change removes them. PR-URL: https://github.com/nodejs/node/pull/4422 Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
24 lines
412 B
JavaScript
24 lines
412 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const http = require('http');
|
|
|
|
const server = http.createServer(function(req, res) {
|
|
res.writeHead(200);
|
|
res.end();
|
|
|
|
server.close();
|
|
});
|
|
|
|
server.listen(common.PORT, function() {
|
|
|
|
const req = http.request({
|
|
method: 'POST',
|
|
port: common.PORT
|
|
});
|
|
|
|
const payload = new Buffer(16390);
|
|
payload.fill('Й');
|
|
req.write(payload);
|
|
req.end();
|
|
});
|