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 <[email protected]> Reviewed-By: David Cai <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
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

+1-1
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)