diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-22 11:07:09 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-22 11:07:09 +0000 |
commit | 2f7c5f84e4834e49001ed565cfe45f14e120613f (patch) | |
tree | 03de7e58b569635cc117dad41b90d1db811a5139 /actionpack/lib/action_controller/response.rb | |
parent | da0c4c5c9695e2ebe8d98b391d901b598dd293a2 (diff) | |
download | rails-2f7c5f84e4834e49001ed565cfe45f14e120613f.tar.gz rails-2f7c5f84e4834e49001ed565cfe45f14e120613f.tar.bz2 rails-2f7c5f84e4834e49001ed565cfe45f14e120613f.zip |
Cure some ills discovered with the refactoring
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1351 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 227aa27cc5..746d6097be 100755 --- a/actionpack/lib/action_controller/response.rb +++ b/actionpack/lib/action_controller/response.rb @@ -8,7 +8,7 @@ module ActionController end def redirect(to_url, permanently = false) - @headers["Status"] ||= "302 Found" + @headers["Status"] = "302 Found" unless @headers["Status"] == "301 Moved Permanently" @headers["location"] = to_url @body = "<html><body>You are being <a href=\"#{to_url}\">redirected</a>.</body></html>" |