Skip to content

Commit 77506e4

Browse files
jiangplusMylesBorins
authored andcommitted
test: simplify string concatenation
Replace string concatenation with template literals. Updated `test/parallel/test-http-multi-line-headers.js` PR-URL: #14278 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: David Cai <davidcai1993@yahoo.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent b9b343c commit 77506e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-http-multi-line-headers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const server = net.createServer(function(conn) {
1111
const response =
1212
'HTTP/1.1 200 OK\r\n' +
1313
'Connection: close\r\n' +
14-
'Content-Length: ' + body.length + '\r\n' +
14+
`Content-Length: ${body.length}\r\n` +
1515
'Content-Type: text/plain;\r\n' +
1616
' x-unix-mode=0600;\r\n' +
1717
' name="hello.txt"\r\n' +

0 commit comments

Comments
 (0)