Permalink
Browse files

Fixed that a response has to be available for that exact mime type fo…

…r it to be called (otherwise 406 should occur)

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 1b56d32 commit 8e067b0b44b83c92e2417fb7256192be73e5a933 @dhh dhh committed Sep 29, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/mime_responds.rb
@@ -161,7 +161,7 @@ def respond
@responses[@order.first].call
return
else
- if priority === @order
+ if @responses[priority]
@responses[priority].call
return # mime type match found, be happy and return
end

0 comments on commit 8e067b0

Please sign in to comment.