Commit 416b70c8 authored by Maciej Małecki's avatar Maciej Małecki Committed by Cédric de Saint Martin

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

Instead, just perform a request.
parent a94809af
......@@ -599,11 +599,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment