mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
[v0.6] Don't use agent.appendMessage()
Instead, just perform a request.
This commit is contained in:
parent
8d701bb20b
commit
6655e01642
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user