[v0.6] Don't use agent.appendMessage()

Instead, just perform a request.
This commit is contained in:
Maciej Małecki 2011-10-27 19:36:05 +02:00
parent 8d701bb20b
commit 6655e01642

View File

@ -590,11 +590,12 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer)
//
outgoing.host = this.target.host;
outgoing.port = this.target.port;
outgoing.agent = agent;
outgoing.method = 'GET';
outgoing.path = req.url;
outgoing.headers = req.headers;
var reverseProxy = agent.appendMessage(outgoing);
var reverseProxy = this.target.protocol.request(outgoing);
//
// On any errors from the `reverseProxy` emit the