I've been working a lot with sys::MimeType lately, and what would be really useful is a method that tests for (case-insensitive) equality based solely on the media and subtype.
I often look for, or search for MimeTypes, but I don't want to be hung up on extra fiddly params or the charset, and find myself creating strings like ${media}/${sub} for the comparison.
So, I was thinking it'd be nice if there was builtin method in MediaType, something like:
SlimerDude Sun 26 Jan 2014
I've been working a lot with
sys::MimeType
lately, and what would be really useful is a method that tests for (case-insensitive) equality based solely on the media and subtype.I often look for, or search for MimeTypes, but I don't want to be hung up on extra fiddly params or the charset, and find myself creating strings like
${media}/${sub}
for the comparison.So, I was thinking it'd be nice if there was builtin method in MediaType, something like:
Is this a bad thing to ask for?
brian Tue 28 Jan 2014
I added a new MimeType.noParams method