From 8e067b0b44b83c92e2417fb7256192be73e5a933 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 29 Sep 2007 21:56:21 +0000 Subject: Fixed that a response has to be available for that exact mime type for it to be called (otherwise 406 should occur) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/mime_responds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_controller/mime_responds.rb b/actionpack/lib/action_controller/mime_responds.rb index 65eb7c896d..1390d77849 100644 --- a/actionpack/lib/action_controller/mime_responds.rb +++ b/actionpack/lib/action_controller/mime_responds.rb @@ -161,7 +161,7 @@ module ActionController #:nodoc: @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 -- cgit v1.2.3