mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #235 from Filirom1/patch-1
prefer `target.hostname` over `target.host`
This commit is contained in:
commit
f28c62c815
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user