We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d4075c commit a790203Copy full SHA for a790203
actionpack/lib/action_dispatch/http/mime_type.rb
@@ -175,7 +175,7 @@ def parse(accept_header)
175
accept_header = accept_header[0, index]
176
end
177
return [] if accept_header.blank?
178
- parse_trailing_star(accept_header) || [Mime::Type.lookup(accept_header)].compact
+ parse_trailing_star(accept_header) || Array(Mime::Type.lookup(accept_header))
179
else
180
list, index = [], 0
181
accept_header.split(",").each do |header|
0 commit comments