MIME::Types#add_type will add exact duplicate objects
halostatue opened this issue · 0 comments
halostatue commented
The type variants and extension index code contains Array objects, not Set objects, which means that you can do:
text = MIME::Type['text/plain'].first
types = MIME::Types.new
types.add(text, text)
Text will be listed in the lookup fields twice.