Hi, This patch should obsolete the lib/sinatra/respond_to.rb file in prior of using Rack middleware for the content negotiation. This new code should handle all criteria defined in HTTP specification for the Accept header, like priorities and order.
I also included a test unit file with all possible combinations of browser Accept strings and also some special cases when we want XML or force content type using the 'format' parameter. This should also fix the DTACLOUD-25 and DTACLOUD-53 Jira issues. -- Michal
