Closed jbardin closed 10 years ago
We're trying to use vulcan behind an AWS ELB, but we need to have the original request protocol, not that from the ELB.
James,
Are you using vulcan library or vulcand? I'm thinking of moving this function to vulcand as a middleware.
This is using the vulcan library directly. We already had a Go load balancer, and vulcan allowed us to quickly embed an http proxy for host-based routing.
Ok, makes sense. I would keep this logic in the library then. Can you add tests to cover this scenario?Otherwise looks good to me
OK. Added a test for headers
Thanks James!
If vulcan is behind another proxy/lb, we may need to keep the X-Forwarded-Proto header from the incoming request