1
0
Fork 0

libmat2: harmless: add the text/xml mime type

Fedora defines the 'text/xml' mime type for xml files. Adds this mime
type to the harmless parser.

Fixes #36.

Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
This commit is contained in:
Antoine Tenart 2018-06-12 21:32:32 +02:00
parent 484e26dd9c
commit cce5de82e5
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ from . import abstract
class HarmlessParser(abstract.AbstractParser):
""" This is the parser for filetypes that do not contain metadata. """
mimetypes = {'application/xml', 'text/plain', 'application/rdf+xml'}
mimetypes = {'application/xml', 'text/plain', 'text/xml', 'application/rdf+xml'}
def __init__(self, filename: str) -> None:
super().__init__(filename)