Fix loop introduced by rack:dda892d

This commit is contained in:
Jeremy Kemper
2010-10-26 11:31:05 -07:00
parent 69a1a0adb5
commit 0dfdbdd4f4

View File

@@ -8,11 +8,6 @@ module ActionDispatch
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 @@ module ActionDispatch
end
end
end
end
end