prefer target.hostname over target.host

This commit is contained in:
Romain 2012-04-24 10:22:56 +03:00
parent ed06af97ef
commit c4d185dca9

View File

@ -210,6 +210,7 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
// Setup outgoing proxy with relevant properties. // Setup outgoing proxy with relevant properties.
// //
outgoing.host = this.target.host; outgoing.host = this.target.host;
outgoing.hostname = this.target.hostname;
outgoing.port = this.target.port; outgoing.port = this.target.port;
outgoing.agent = this.target.agent; outgoing.agent = this.target.agent;
outgoing.method = req.method; outgoing.method = req.method;