mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Merge pull request #967 from jbacklund/patch-1
Set the x-forwarded-host flag when xfwd is enabled
This commit is contained in:
commit
c1440b58f1
@ -78,6 +78,8 @@ web_o = Object.keys(web_o).map(function(pass) {
|
||||
(req.headers['x-forwarded-' + header] ? ',' : '') +
|
||||
values[header];
|
||||
});
|
||||
|
||||
req.headers['x-forwarded-host'] = req.headers['host'];
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user