sinatra/sinatra — pull request #805 by sbonami (2013-10-26 00:49:07+00:00)
Title: Fix Request#accept? NoMethodError

Allow Request#accept? to return false when type parameter does not
match any of the preferred types. When `preferred_type(type)` returns
nil, `include?` will throw a NoMethodError. By converting output to a
string, `include?` will return false.