Skip to content

Commit 802783d

Browse files
jiangplusaddaleax
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 783cf50 commit 802783d

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
@@ -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)