ContentTypes(types []string) option whitelists by the full content type. In my case, the encoding and boundary don't matter to me. All I care about is the MIME type. I'd rather not have to declare all the encodings for each MIME type.
Is there an interest in accepting a PR which adds something like one of these:
ContentTypesMimeOnly(types []string) option
MimeTypes(types []string) option
This would use the standard method for parsing the mime type.
(@jprobinson, @adammck do you have thoughts on this?)
ContentTypes(types []string) option whitelists by the full content type. In my case, the encoding and boundary don't matter to me. All I care about is the MIME type. I'd rather not have to declare all the encodings for each MIME type.
Is there an interest in accepting a PR which adds something like one of these:
ContentTypesMimeOnly(types []string) optionMimeTypes(types []string) optionThis would use the standard method for parsing the mime type.
(@jprobinson, @adammck do you have thoughts on this?)