diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-16 12:08:00 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-02-16 12:08:00 +0000 |
commit | 07dcbd97b9110d25e9cde3c93976254e73d919dc (patch) | |
tree | ce4c6cbdb066a3429184e5b8eaf87fde6c7a9550 /actionpack | |
parent | d4aead0d508d30b57cf2a338d6c8cd2f2b954699 (diff) | |
download | rails-07dcbd97b9110d25e9cde3c93976254e73d919dc.tar.gz rails-07dcbd97b9110d25e9cde3c93976254e73d919dc.tar.bz2 rails-07dcbd97b9110d25e9cde3c93976254e73d919dc.zip |
Fixed https handling on other ports than 443 [Alan Gano]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@637 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rwxr-xr-x | actionpack/lib/action_controller/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/request.rb b/actionpack/lib/action_controller/request.rb index 2e7957caf9..aaefe92ebf 100755 --- a/actionpack/lib/action_controller/request.rb +++ b/actionpack/lib/action_controller/request.rb @@ -78,7 +78,7 @@ module ActionController end def protocol - port == 443 ? 'https://' : 'http://' + env["HTTPS"] == "on" ? 'https://' : 'http://' end def ssl? |