aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/test_process.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-28 23:25:00 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-28 23:25:00 +0000
commit13e1d295d69d6410e0e4350aff8dde0e5151717d (patch)
treebe9d91e3c674172dcdb447679d6a22e57507d386 /actionpack/lib/action_controller/test_process.rb
parentf6e85e4ec68d677a90986b47f71ac762fc19c3f7 (diff)
downloadrails-13e1d295d69d6410e0e4350aff8dde0e5151717d.tar.gz
rails-13e1d295d69d6410e0e4350aff8dde0e5151717d.tar.bz2
rails-13e1d295d69d6410e0e4350aff8dde0e5151717d.zip
@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
Diffstat (limited to 'actionpack/lib/action_controller/test_process.rb')
-rw-r--r--actionpack/lib/action_controller/test_process.rb2
1 files changed, 1 insertions, 1 deletions
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?