diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-08 17:42:23 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-08 17:42:23 -0700 |
commit | e26ebc985b882c38da50fb0104791a5f2c0f8522 (patch) | |
tree | aed3ecdde023b3809c7ee9de6c8e8ed63fe1f8b0 /lib/unicorn.rb | |
parent | 9625ad39b73d3d1443ff097e9113d1ec9c9d5f00 (diff) | |
download | unicorn-e26ebc985b882c38da50fb0104791a5f2c0f8522.tar.gz |
Pass "https" to "rack.url_scheme" if the X-Forwarded-Proto header matches "https". X-Forwarded-Proto is a semi-standard header that Ruby frameworks seem to respect; so we use that. We won't support ENV['HTTPS'] since that can only be set at start time and some app servers supporting https also support http. Currently, "rack.url_scheme" only allows "http" and "https", so we won't set anything else to avoid breaking Rack::Lint.
Diffstat (limited to 'lib/unicorn.rb')
0 files changed, 0 insertions, 0 deletions