The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
16 lines
407 B
JavaScript
16 lines
407 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
var http = require('http');
|
|
|
|
http.createServer(function(req, res) {
|
|
res.end('ok');
|
|
this.close();
|
|
}).listen(common.PORT, '127.0.0.1', function() {
|
|
var req = http.request({
|
|
method: 'POST',
|
|
host: '127.0.0.1',
|
|
port: common.PORT,
|
|
});
|
|
req.flush(); // Flush the request headers.
|
|
req.flush(); // Should be idempotent.
|
|
});
|