Skip to content

Commit 9fa6785

Browse files
committed
test: simplify string concatenation
Replace string concatenation with template literals. Updated `test/parallel/test-http-multi-line-headers.js`
1 parent 5d3609d commit 9fa6785

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)