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.
29 lines
581 B
JavaScript
29 lines
581 B
JavaScript
// Called by test/pummel/test-regress-GH-892.js
|
|
|
|
var https = require('https');
|
|
var fs = require('fs');
|
|
var assert = require('assert');
|
|
|
|
var PORT = parseInt(process.argv[2]);
|
|
var bytesExpected = parseInt(process.argv[3]);
|
|
|
|
var gotResponse = false;
|
|
|
|
var options = {
|
|
method: 'POST',
|
|
port: PORT,
|
|
rejectUnauthorized: false
|
|
};
|
|
|
|
var req = https.request(options, function(res) {
|
|
assert.equal(200, res.statusCode);
|
|
gotResponse = true;
|
|
console.error('DONE');
|
|
res.resume();
|
|
});
|
|
|
|
req.end(new Buffer(bytesExpected));
|
|
|
|
process.on('exit', function() {
|
|
assert.ok(gotResponse);
|
|
});
|