Skip to content
Snippets Groups Projects
Commit cce5de82 authored by atenart's avatar atenart
Browse files

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: default avatarAntoine Tenart <antoine.tenart@ack.tf>
parent 484e26dd
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ from . import abstract ...@@ -4,7 +4,7 @@ from . import abstract
class HarmlessParser(abstract.AbstractParser): class HarmlessParser(abstract.AbstractParser):
""" This is the parser for filetypes that do not contain metadata. """ """ 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: def __init__(self, filename: str) -> None:
super().__init__(filename) super().__init__(filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment