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
上级 d4aead0d
......@@ -78,7 +78,7 @@ def request_uri
end
def protocol
port == 443 ? 'https://' : 'http://'
env["HTTPS"] == "on" ? 'https://' : 'http://'
end
def ssl?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册