Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ServerAddressStrategy that deals with proxied requests #138
If an incoming request goes through a proxy server, IncomingAddressStrategy will use the final address in any urls it makes. This will normally result in resource references and ids that aren't readable to the client, since presumably the final server is behind a firewall somewhere.
It'd be useful to have an address strategy that uses x-forarded-host to determine whether a request had been proxied, and if so, use the host as specified by the client.