[fix] Dont use res.* in proxyWebSocketRequest

This commit is contained in:
indexzero 2011-07-29 22:27:59 -04:00 committed by Dominic Tarr
parent f0917a3f97
commit f7452bc42d

View File

@ -636,8 +636,7 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, options
location = this.proxyTable.getProxyLocation(req);
if (!location) {
res.writeHead(404);
return res.end();
return socket.destroy();
}
options.port = location.port;
@ -786,6 +785,7 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, options
path: req.url,
headers: req.headers,
};
var reverseProxy = agent.appendMessage(outgoing);
//