Skip to content

Commit

Permalink
test: replace concatenation with template literal
Browse files Browse the repository at this point in the history
PR-URL: #14284
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@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>
  • Loading branch information
HSUCHING authored and MylesBorins committed Sep 5, 2017
1 parent c013c54 commit 3ba55d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/parallel/test-http-upgrade-client2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ const CRLF = '\r\n';

const server = http.createServer();
server.on('upgrade', function(req, socket, head) {
socket.write('HTTP/1.1 101 Ok' + CRLF +
'Connection: Upgrade' + CRLF +
'Upgrade: Test' + CRLF + CRLF + 'head');
socket.write(`HTTP/1.1 101 Ok${CRLF}` +
`Connection: Upgrade${CRLF}` +
`Upgrade: Test${CRLF}${CRLF}` +
'head');
socket.on('end', function() {
socket.end();
});
Expand Down

0 comments on commit 3ba55d8

Please sign in to comment.