Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ensure follow_redirect works with normalized headers

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-pre-release@5641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit fb6cd55de7d1a8eb385d9a78e1e787dcd1c741e3 1 parent c4d4660
Michael Koziarski NZKoz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/integration.rb
2  actionpack/lib/action_controller/integration.rb
View
@@ -113,7 +113,7 @@ def host!(name)
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.