lib/grape/middleware/base.rb in grape-2.1.1 vs lib/grape/middleware/base.rb in grape-2.1.2
- old
+ new
@@ -72,10 +72,10 @@
def content_type
content_type_for(env[Grape::Env::API_FORMAT] || options[:format]) || TEXT_HTML
end
def mime_types
- @mime_type ||= content_types.each_pair.with_object({}) do |(k, v), types_without_params|
+ @mime_types ||= content_types.each_pair.with_object({}) do |(k, v), types_without_params|
types_without_params[v.split(';').first] = k
end
end
private