mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
update outgoing.headers.host incase the destination does proxying
This commit is contained in:
parent
f004788098
commit
65b7872e6a
@ -194,7 +194,7 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
|
||||
outgoing.method = req.method;
|
||||
outgoing.path = req.url;
|
||||
outgoing.headers = req.headers;
|
||||
|
||||
outgoing.headers.host = this.target.host + (this.target.port == 80 ? '' : ':' + this.target.port)
|
||||
//
|
||||
// Open new HTTP request to internal resource with will act
|
||||
// as a reverse proxy pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user