Rename upgradeReq in http_client to make identical with master

This commit is contained in:
Sam Frances 2017-11-03 15:20:32 +00:00
parent 5c3ac5254f
commit 41cd3f8adf
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ var argv = require('optimist').argv,
// Handle new WebSocket client
new_client = function(client, upgradeReq) {
new_client = function(client, req) {
var clientAddr = client._socket.remoteAddress, log;
console.log(upgradeReq ? upgradeReq.url : client.upgradeReq.url);
console.log(req ? req.url : client.req.url);
log = function (msg) {
console.log(' ' + clientAddr + ': '+ msg);
};