mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
618d5317d3
TLDR: always return an object that responds to the query methods from request.format, and do not touch Mime::Type[] lookup to avoid bugs. --- Long version: The initial issue was about being able to do checks like request.format.html? for request with an unknown format, where request.format would be nil. This is where the issue came from at first in #7837 and #8085 (merged in |
||
---|---|---|
.. | ||
cache.rb | ||
filter_parameters.rb | ||
filter_redirect.rb | ||
headers.rb | ||
mime_negotiation.rb | ||
mime_type.rb | ||
mime_types.rb | ||
parameter_filter.rb | ||
parameters.rb | ||
rack_cache.rb | ||
request.rb | ||
response.rb | ||
upload.rb | ||
url.rb |