koding / websocketproxy

WebSocket reverse proxy handler for Go
http://godoc.org/github.com/koding/websocketproxy
MIT License
427 stars 120 forks source link

Preserve host header #28

Closed wbutler1331 closed 5 years ago

wbutler1331 commented 5 years ago

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.

wbutler1331 commented 5 years ago

fair points :) updated

rjeczalik commented 5 years ago

Thanks @wbutler1331!