diff options
author | José Valim <jose.valim@gmail.com> | 2010-09-20 10:18:44 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-10-03 21:24:22 +0200 |
commit | 50215f9525b6b5e3bfe703724b9f68177ed8565d (patch) | |
tree | 1574d048d9da01a941313592bf433431572497b9 /actionpack/lib/action_dispatch/http | |
parent | 5836af8f8b0eb3c569c66792abf50a0485bb6f22 (diff) | |
download | rails-50215f9525b6b5e3bfe703724b9f68177ed8565d.tar.gz rails-50215f9525b6b5e3bfe703724b9f68177ed8565d.tar.bz2 rails-50215f9525b6b5e3bfe703724b9f68177ed8565d.zip |
Rely on Rack::Session stores API for more compatibility across the Ruby world.
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r-- | actionpack/lib/action_dispatch/http/url.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb index 3e5cd6a2f9..cfee95eb4b 100644 --- a/actionpack/lib/action_dispatch/http/url.rb +++ b/actionpack/lib/action_dispatch/http/url.rb @@ -18,11 +18,6 @@ module ActionDispatch @protocol ||= ssl? ? 'https://' : 'http://' end - # Is this an SSL request? - def ssl? - @ssl ||= @env['HTTPS'] == 'on' || @env['HTTP_X_FORWARDED_PROTO'] == 'https' - end - # Returns the \host for this request, such as "example.com". def raw_host_with_port if forwarded = env["HTTP_X_FORWARDED_HOST"] |