Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Handle multiple X-Forwarded-Proto headers #37

Merged
merged 5 commits into from
Mar 25, 2014

Conversation

atmos
Copy link
Owner

@atmos atmos commented Mar 25, 2014

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

atmos added a commit that referenced this pull request Mar 25, 2014
Handle multiple X-Forwarded-Proto headers
@atmos atmos merged commit dae6b8e into master Mar 25, 2014
@atmos atmos deleted the handle-multiple-x-forwarded-protos branch March 25, 2014 00:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant