diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-29 21:56:21 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-09-29 21:56:21 +0000 |
commit | 8e067b0b44b83c92e2417fb7256192be73e5a933 (patch) | |
tree | ecb84dce4f05729cdb16755bd8df3a778c6fb8c0 | |
parent | 1b56d328931dd62f53331cd8206cd6459500b8da (diff) | |
download | rails-8e067b0b44b83c92e2417fb7256192be73e5a933.tar.gz rails-8e067b0b44b83c92e2417fb7256192be73e5a933.tar.bz2 rails-8e067b0b44b83c92e2417fb7256192be73e5a933.zip |
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
-rw-r--r-- | actionpack/lib/action_controller/mime_responds.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |