Closed atmos closed 10 years ago
Apparently getting proxied through setups like Haproxy -> nginx -> unicorn can set HTTP_X_FORWARDED_PROTO to a command delimited set of values like https,https. This splits on commas and ensures that the first protocol was https.
HTTP_X_FORWARDED_PROTO
https,https
https
This is similar behavior to rack-ssl's behavior.
/cc @josh @bhuga @alindeman
Apparently getting proxied through setups like Haproxy -> nginx -> unicorn can set
HTTP_X_FORWARDED_PROTO
to a command delimited set of values likehttps,https
. This splits on commas and ensures that the first protocol washttps
.This is similar behavior to rack-ssl's behavior.
/cc @josh @bhuga @alindeman