Permalink
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...
1 parent c4d4660 commit fb6cd55de7d1a8eb385d9a78e1e787dcd1c741e3 @NZKoz NZKoz committed Nov 27, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/integration.rb
@@ -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

0 comments on commit fb6cd55

Please sign in to comment.