Skip to content

Commit 36ef7e0

Browse files
jiangplusFishrock123
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 7945deb commit 36ef7e0

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
@@ -32,7 +32,7 @@ const server = net.createServer(function(conn) {
3232
const response =
3333
'HTTP/1.1 200 OK\r\n' +
3434
'Connection: close\r\n' +
35-
'Content-Length: ' + body.length + '\r\n' +
35+
`Content-Length: ${body.length}\r\n` +
3636
'Content-Type: text/plain;\r\n' +
3737
' x-unix-mode=0600;\r\n' +
3838
' name="hello.txt"\r\n' +

0 commit comments

Comments
 (0)