Skip to content

Commit

Permalink
[v0.6] Don't use agent.appendMessage()
Browse files Browse the repository at this point in the history
Instead, just perform a request.
  • Loading branch information
mmalecki committed Dec 14, 2011
1 parent 8d701bb commit 6655e01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/node-http-proxy/http-proxy.js
Expand Up @@ -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
Expand Down

0 comments on commit 6655e01

Please sign in to comment.