Permalink
Browse files

Include location header in args.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6774 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent fd15359 commit c597e7d9ac82a1c393c645fce06f615ed5abba87 @jeremy jeremy committed May 18, 2007
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/test/controller/test_test.rb
View
3 actionpack/test/controller/test_test.rb
@@ -67,8 +67,7 @@ def redirect_to_different_controller
end
def create
- headers['Location'] = 'created resource'
- head :created
+ head :created, :location => 'created resource'
end
private

0 comments on commit c597e7d

Please sign in to comment.