Skip to content

Commit

Permalink
x-forwarded-host overwrite for mutli level proxies (http-party#1267)
Browse files Browse the repository at this point in the history
With more than 1 proxy the original host was lost, now it will be passed down the proxy chain
  • Loading branch information
jaggernoth authored and mcheshkov committed Sep 16, 2019
1 parent b035cd0 commit 3c98d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http-proxy/passes/web-incoming.js
Expand Up @@ -82,7 +82,7 @@ module.exports = {
values[header];
});

req.headers['x-forwarded-host'] = req.headers['host'] || '';
req.headers['x-forwarded-host'] = req.headers['x-forwarded-host'] || req.headers['host'] || '';
},

/**
Expand Down

0 comments on commit 3c98d77

Please sign in to comment.