Merge pull request #235 from Filirom1/patch-1

prefer `target.hostname` over `target.host`
This commit is contained in:
Charlie Robbins 2012-07-21 23:31:35 -07:00
commit f28c62c815

View File

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