Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
dhh committed Sep 29, 2007
1 parent 1b56d32 commit 8e067b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/mime_responds.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8e067b0

Please sign in to comment.