diff options
Diffstat (limited to 'test/parallel/test-stream2-httpclient-response-end.js')
-rw-r--r-- | test/parallel/test-stream2-httpclient-response-end.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-stream2-httpclient-response-end.js b/test/parallel/test-stream2-httpclient-response-end.js index 6d3da191b0..27d31e50a9 100644 --- a/test/parallel/test-stream2-httpclient-response-end.js +++ b/test/parallel/test-stream2-httpclient-response-end.js @@ -4,10 +4,10 @@ const assert = require('assert'); const http = require('http'); const msg = 'Hello'; const server = http.createServer(function(req, res) { - res.writeHead(200, {'Content-Type': 'text/plain'}); + res.writeHead(200, { 'Content-Type': 'text/plain' }); res.end(msg); }).listen(0, function() { - http.get({port: this.address().port}, function(res) { + http.get({ port: this.address().port }, function(res) { let data = ''; res.on('readable', common.mustCall(function() { console.log('readable event'); |