atmos / warden-github

:lock: warden strategy for github oauth
MIT License
54 stars 41 forks source link

Handle multiple X-Forwarded-Proto headers #37

Closed atmos closed 10 years ago

atmos commented 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.

This is similar behavior to rack-ssl's behavior.

/cc @josh @bhuga @alindeman