Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-response-splitting.js')
-rw-r--r--test/parallel/test-http-response-splitting.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parallel/test-http-response-splitting.js b/test/parallel/test-http-response-splitting.js
index aebb6b813be..b14d59e59ce 100644
--- a/test/parallel/test-http-response-splitting.js
+++ b/test/parallel/test-http-response-splitting.js
@@ -29,13 +29,13 @@ const server = http.createServer((req, res) => {
switch (count++) {
case 0:
const loc = url.parse(req.url, true).query.lang;
- test(res, 302, {Location: `/foo?lang=${loc}`});
+ test(res, 302, { Location: `/foo?lang=${loc}` });
break;
case 1:
- test(res, 200, {'foo': x});
+ test(res, 200, { 'foo': x });
break;
case 2:
- test(res, 200, {'foo': y});
+ test(res, 200, { 'foo': y });
break;
default:
assert.fail('should not get to here.');
@@ -46,7 +46,7 @@ const server = http.createServer((req, res) => {
});
server.listen(0, () => {
const end = 'HTTP/1.1\r\n\r\n';
- const client = net.connect({port: server.address().port}, () => {
+ const client = net.connect({ port: server.address().port }, () => {
client.write(`GET ${str} ${end}`);
client.write(`GET / ${end}`);
client.write(`GET / ${end}`);