mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 09:02:40 +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>
19 lines
328 B
JavaScript
19 lines
328 B
JavaScript
'use strict';
|
|
var common = require('../common');
|
|
|
|
var http = require('http');
|
|
|
|
http.createServer(function(req, res) {
|
|
res.end('ok\n');
|
|
this.close();
|
|
}).listen(common.PORT, test);
|
|
|
|
function test() {
|
|
http.request({
|
|
port: common.PORT,
|
|
encoding: 'utf8'
|
|
}, function(res) {
|
|
res.pipe(process.stdout);
|
|
}).end();
|
|
}
|