From 13e1d295d69d6410e0e4350aff8dde0e5151717d Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 28 Nov 2006 23:25:00 +0000 Subject: @response.redirect_url works with 201 Created responses: just return headers['Location'] rather than checking the response status. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5643 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/test_process.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 924d032eec..4011e6cf33 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -179,7 +179,7 @@ module ActionController #:nodoc: # returns the redirection location or nil def redirect_url - redirect? ? headers['Location'] : nil + headers['Location'] end # does the redirect location match this regexp pattern? -- cgit v1.2.3