mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
![]() 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. |
||
---|---|---|
.. | ||
sinatra | ||
sinatra.rb |