Skip to content

Commit 6655e01

Browse files
committed
[v0.6] Don't use agent.appendMessage()
Instead, just perform a request.
1 parent 8d701bb commit 6655e01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/node-http-proxy/http-proxy.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -590,11 +590,12 @@ HttpProxy.prototype.proxyWebSocketRequest = function (req, socket, head, buffer)
590590
//
591591
outgoing.host = this.target.host;
592592
outgoing.port = this.target.port;
593+
outgoing.agent = agent;
593594
outgoing.method = 'GET';
594595
outgoing.path = req.url;
595596
outgoing.headers = req.headers;
596597

597-
var reverseProxy = agent.appendMessage(outgoing);
598+
var reverseProxy = this.target.protocol.request(outgoing);
598599

599600
//
600601
// On any errors from the `reverseProxy` emit the

0 commit comments

Comments
 (0)