提交 0dfdbdd4 编写于 作者: J Jeremy Kemper

Fix loop introduced by rack:dda892d

上级 69a1a0ad
......@@ -8,11 +8,6 @@ def url
protocol + host_with_port + fullpath
end
# Returns 'https' if this is an SSL request and 'http' otherwise.
def scheme
ssl? ? 'https' : 'http'
end
# Returns 'https://' if this is an SSL request and 'http://' otherwise.
def protocol
@protocol ||= ssl? ? 'https://' : 'http://'
......@@ -99,4 +94,4 @@ def named_host?(host)
end
end
end
end
\ No newline at end of file
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册