You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
378 B

'use strict';
require('../common');
const http = require('http');
http.createServer(function(req, res) {
res.end('ok');
this.close();
}).listen(0, '127.0.0.1', function() {
const req = http.request({
method: 'POST',
host: '127.0.0.1',
port: this.address().port,
});
req.flush(); // Flush the request headers.
req.flush(); // Should be idempotent.
});