# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 30
def accepts
@env["action_dispatch.request.accepts"] ||= begin
header = @env['HTTP_ACCEPT'].to_s.strip
if header.empty?
[content_mime_type]
else
Mime::Type.parse(header)
end
end
end