diff options
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_ext.rb | 7 | ||||
-rwxr-xr-x | actionpack/lib/action_controller/response.rb | 2 |
2 files changed, 1 insertions, 8 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb b/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb index d2973c0c10..06958272ab 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_ext.rb @@ -27,13 +27,6 @@ class CGI #:nodoc: def request_parameters CGIMethods.parse_request_parameters(params, env_table) end - - def redirect(where) - header({ - "Status" => "302 Moved", - "location" => "#{where}" - }) - end def session(parameters = nil) parameters = {} if parameters.nil? 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 |