about summary refs log tree commit homepage
path: root/test/unit/test_server.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-04-08 17:42:23 -0700
committerEric Wong <normalperson@yhbt.net>2009-04-08 17:42:23 -0700
commite26ebc985b882c38da50fb0104791a5f2c0f8522 (patch)
treeaed3ecdde023b3809c7ee9de6c8e8ed63fe1f8b0 /test/unit/test_server.rb
parent9625ad39b73d3d1443ff097e9113d1ec9c9d5f00 (diff)
downloadunicorn-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 'test/unit/test_server.rb')
0 files changed, 0 insertions, 0 deletions