diff options
author | Jakub Mrowiec - Alkagar <alkagar@gmail.com> | 2017-10-06 09:25:13 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-10-10 17:32:06 -0700 |
commit | b3ce4080980ae488003d6e41a5176381d9c70005 (patch) | |
tree | 33ec68926721248ac511ad34aefa7c5f71df3b7e /test/parallel/test-http-upgrade-client2.js | |
parent | b9f90fd0b4b10e4ea1eea3a58a7572ce27e79426 (diff) | |
download | android-node-v8-b3ce4080980ae488003d6e41a5176381d9c70005.tar.gz android-node-v8-b3ce4080980ae488003d6e41a5176381d9c70005.tar.bz2 android-node-v8-b3ce4080980ae488003d6e41a5176381d9c70005.zip |
test: update http test client function signatures
remove unused head arguments
PR-URL: https://github.com/nodejs/node/pull/15807
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-http-upgrade-client2.js')
-rw-r--r-- | test/parallel/test-http-upgrade-client2.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-upgrade-client2.js b/test/parallel/test-http-upgrade-client2.js index 221017819c..8883faa9e0 100644 --- a/test/parallel/test-http-upgrade-client2.js +++ b/test/parallel/test-http-upgrade-client2.js @@ -26,7 +26,7 @@ const http = require('http'); const CRLF = '\r\n'; const server = http.createServer(); -server.on('upgrade', function(req, socket, head) { +server.on('upgrade', function(req, socket) { socket.write(`HTTP/1.1 101 Ok${CRLF}` + `Connection: Upgrade${CRLF}` + `Upgrade: Test${CRLF}${CRLF}` + @@ -47,7 +47,7 @@ server.listen(0, common.mustCall(function() { }); let wasUpgrade = false; - function onUpgrade(res, socket, head) { + function onUpgrade(res, socket) { console.log('client upgraded'); wasUpgrade = true; |