Some web applications use the original host header sent by the browser to do things that would prevent them from working properly if the original host header isn't preserved.
For example:
CRSF header checks
Virtual hosting
Looking up the name of cookies (weird I know, but the application I was proxying did this)
This PR preserves the original host header and adds a host header check in the test to simulate an application that does this.
Some web applications use the original host header sent by the browser to do things that would prevent them from working properly if the original host header isn't preserved.
For example:
This PR preserves the original host header and adds a host header check in the test to simulate an application that does this.