From e26ebc985b882c38da50fb0104791a5f2c0f8522 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 8 Apr 2009 17:42:23 -0700 Subject: http11: handle "X-Forwarded-Proto: https" 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. --- lib/unicorn/http_request.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') 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" => "", -- cgit v1.2.3-24-ge0c7