From cce5de82e514c98fd0d8b118c3e05dfe586aa342 Mon Sep 17 00:00:00 2001 From: Antoine Tenart Date: Tue, 12 Jun 2018 21:32:32 +0200 Subject: [PATCH] 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 --- libmat2/harmless.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmat2/harmless.py b/libmat2/harmless.py index d25603b..54737a8 100644 --- a/libmat2/harmless.py +++ b/libmat2/harmless.py @@ -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)