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 | |
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')
-rw-r--r-- | lib/unicorn/http_request.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index 750deea..a3a1d4d 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -19,7 +19,6 @@ module Unicorn "rack.multiprocess" => true, "rack.multithread" => false, "rack.run_once" => false, - "rack.url_scheme" => "http", "rack.version" => [0, 1], "SCRIPT_NAME" => "", |