mirror of
https://github.com/nodejs/node.git
synced 2025-05-08 11:21:41 +00:00

Manually fix issues that eslint --fix couldn't do automatically. PR-URL: https://github.com/nodejs/node/pull/10685 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
17 lines
378 B
JavaScript
17 lines
378 B
JavaScript
'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.
|
|
});
|