diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-11-26 05:04:57 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-11-26 05:04:57 +0000 |
commit | 093c7257326ea31a832c167f9049b02f897365bf (patch) | |
tree | 786551f3fd38062cc6783db39c540fd660a753b3 /actionpack/lib/action_controller/response.rb | |
parent | 2d1169ad16029eb6fbae3b457d7dc2135b216d87 (diff) | |
download | rails-093c7257326ea31a832c167f9049b02f897365bf.tar.gz rails-093c7257326ea31a832c167f9049b02f897365bf.tar.bz2 rails-093c7257326ea31a832c167f9049b02f897365bf.zip |
Fix that redirects should set "Location" header, not "location", and remove dead CGI.redirect
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5634 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/response.rb')
-rwxr-xr-x | actionpack/lib/action_controller/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/response.rb b/actionpack/lib/action_controller/response.rb index d6795e37a0..a6438a132b 100755 --- a/actionpack/lib/action_controller/response.rb +++ b/actionpack/lib/action_controller/response.rb @@ -27,7 +27,7 @@ module ActionController def redirect(to_url, permanently = false) @headers["Status"] = "302 Found" unless @headers["Status"] == "301 Moved Permanently" - @headers["location"] = to_url + @headers["Location"] = to_url @body = "<html><body>You are being <a href=\"#{to_url}\">redirected</a>.</body></html>" end |