From 9fa678513a3f5e6a95e5d30b1ce26f8670761c6c Mon Sep 17 00:00:00 2001 From: jiangplus Date: Sun, 16 Jul 2017 15:55:28 +0800 Subject: [PATCH] test: simplify string concatenation Replace string concatenation with template literals. Updated `test/parallel/test-http-multi-line-headers.js` --- test/parallel/test-http-multi-line-headers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http-multi-line-headers.js b/test/parallel/test-http-multi-line-headers.js index fb629ccc46ae60..99c48cd97b58b9 100644 --- a/test/parallel/test-http-multi-line-headers.js +++ b/test/parallel/test-http-multi-line-headers.js @@ -32,7 +32,7 @@ const server = net.createServer(function(conn) { const response = 'HTTP/1.1 200 OK\r\n' + 'Connection: close\r\n' + - 'Content-Length: ' + body.length + '\r\n' + + `Content-Length: ${body.length}\r\n` + 'Content-Type: text/plain;\r\n' + ' x-unix-mode=0600;\r\n' + ' name="hello.txt"\r\n' +