mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use Location rather than location header.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5635 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -891,7 +891,7 @@ module ActionController #:nodoc:
|
||||
response.redirected_to = nil
|
||||
response.redirected_to_method_params = nil
|
||||
response.headers['Status'] = DEFAULT_RENDER_STATUS_CODE
|
||||
response.headers.delete('location')
|
||||
response.headers.delete('Location')
|
||||
end
|
||||
|
||||
# Erase both render and redirect results
|
||||
|
||||
@@ -113,7 +113,7 @@ module ActionController
|
||||
# performed on the location header.
|
||||
def follow_redirect!
|
||||
raise "not a redirect! #{@status} #{@status_message}" unless redirect?
|
||||
get(interpret_uri(headers["location"].first))
|
||||
get(interpret_uri(headers['Location'].first))
|
||||
status
|
||||
end
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ module ActionController #:nodoc:
|
||||
|
||||
# returns the redirection location or nil
|
||||
def redirect_url
|
||||
redirect? ? headers['location'] : nil
|
||||
redirect? ? headers['Location'] : nil
|
||||
end
|
||||
|
||||
# does the redirect location match this regexp pattern?
|
||||
|
||||
Reference in New Issue
Block a user