mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix loop introduced by rack:dda892d
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user