Skip to content

Handle content type with options #50

@sodre

Description

@sodre

We added a regression when validating the input content type.
For example, if we pass "text/plain; charset=UTF-8" as input, it breaks badly with the following exception.

gate.util.GateException: Unsupported MIME type text/plain; charset=UTF-8 valid options are [application/fastinfoset, application/json, application/msword, application/pdf, application/rtf, application/tika, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/vnd.oasis.opendocument.presentation, application/vnd.oasis.opendocument.spreadsheet, application/vnd.oasis.opendocument.text, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/xhtml+xml, application/xml, text/email, text/html, text/plain, text/sgml, text/x-cochrane, text/x-conll, text/x-json-datasift, text/x-json-twitter, text/x-mediawiki, text/x-pubmed, text/xmi+xml, text/xml]

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