test: replace concatenation with template literal
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
85939bd251
commit
66a6a15561
@ -27,9 +27,10 @@ const CRLF = '\r\n';
|
|||||||
|
|
||||||
const server = http.createServer();
|
const server = http.createServer();
|
||||||
server.on('upgrade', function(req, socket, head) {
|
server.on('upgrade', function(req, socket, head) {
|
||||||
socket.write('HTTP/1.1 101 Ok' + CRLF +
|
socket.write(`HTTP/1.1 101 Ok${CRLF}` +
|
||||||
'Connection: Upgrade' + CRLF +
|
`Connection: Upgrade${CRLF}` +
|
||||||
'Upgrade: Test' + CRLF + CRLF + 'head');
|
`Upgrade: Test${CRLF}${CRLF}` +
|
||||||
|
'head');
|
||||||
socket.on('end', function() {
|
socket.on('end', function() {
|
||||||
socket.end();
|
socket.end();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user