Skip to content

Whitelist by mime type #68

@meirf

Description

@meirf

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions