Skip to content

Commit e3e234e

Browse files
AlkagarMylesBorins
authored andcommitted
test: update http test client function signatures
remove unused head arguments PR-URL: #15807 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 1064258 commit e3e234e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-upgrade-client2.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const http = require('http');
55
const CRLF = '\r\n';
66

77
const server = http.createServer();
8-
server.on('upgrade', function(req, socket, head) {
8+
server.on('upgrade', function(req, socket) {
99
socket.write(`HTTP/1.1 101 Ok${CRLF}` +
1010
`Connection: Upgrade${CRLF}` +
1111
`Upgrade: Test${CRLF}${CRLF}` +
@@ -26,7 +26,7 @@ server.listen(0, common.mustCall(function() {
2626
});
2727
let wasUpgrade = false;
2828

29-
function onUpgrade(res, socket, head) {
29+
function onUpgrade(res, socket) {
3030
console.log('client upgraded');
3131
wasUpgrade = true;
3232

0 commit comments

Comments
 (0)