From d462267c7813951135dbdc2423c2264fe87b6521 Mon Sep 17 00:00:00 2001 From: jiangplus Date: Sun, 16 Jul 2017 15:55:28 +0800 Subject: [PATCH] test: simplify string concatenation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace string concatenation with template literals. Updated `test/parallel/test-http-multi-line-headers.js` PR-URL: https://github.com/nodejs/node/pull/14278 Reviewed-By: Rich Trott Reviewed-By: David Cai Reviewed-By: Michaël Zasso Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Timothy Gu Reviewed-By: Tobias Nießen Reviewed-By: Gireesh Punathil Reviewed-By: Refael Ackermann --- 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 f7998c254870d5..00def792ee168d 100644 --- a/test/parallel/test-http-multi-line-headers.js +++ b/test/parallel/test-http-multi-line-headers.js @@ -11,7 +11,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' +