class Mime::Type
def lookup(string)
def lookup(string) # fallback to the media-type without parameters if it was not found LOOKUP[string] || LOOKUP[string.split(";", 2)[0]&.rstrip] || Type.new(string) end
def lookup(string) # fallback to the media-type without parameters if it was not found LOOKUP[string] || LOOKUP[string.split(";", 2)[0]&.rstrip] || Type.new(string) end