aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-http-head-response-has-no-body-end.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-head-response-has-no-body-end.js')
-rw-r--r--test/parallel/test-http-head-response-has-no-body-end.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-head-response-has-no-body-end.js b/test/parallel/test-http-head-response-has-no-body-end.js
index cd2c22c8fa..de5ca976fc 100644
--- a/test/parallel/test-http-head-response-has-no-body-end.js
+++ b/test/parallel/test-http-head-response-has-no-body-end.js
@@ -6,14 +6,14 @@ const http = require('http');
// responds to a HEAD request with data to res.end,
// it does not send any body.
-var server = http.createServer(function(req, res) {
+const server = http.createServer(function(req, res) {
res.writeHead(200);
res.end('FAIL'); // broken: sends FAIL from hot path.
});
server.listen(0);
server.on('listening', common.mustCall(function() {
- var req = http.request({
+ const req = http.request({
port: this.address().port,
method: 'HEAD',
path: '/'