From 802783d34ac7ff1a7fc4f49bcca8a0ef3f68ae37 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 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' +