diff options
| author | Antoine Tenart | 2018-06-12 21:32:32 +0200 |
|---|---|---|
| committer | Antoine Tenart | 2018-06-12 21:34:47 +0200 |
| commit | cce5de82e514c98fd0d8b118c3e05dfe586aa342 (patch) | |
| tree | ab925c35b525541a168dc5e302ca349ef105ae64 | |
| parent | 484e26dd9c03704adb60f209cf6301b52c4a04c7 (diff) | |
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>
| -rw-r--r-- | libmat2/harmless.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 4 | 4 | ||
| 5 | class HarmlessParser(abstract.AbstractParser): | 5 | class HarmlessParser(abstract.AbstractParser): |
| 6 | """ This is the parser for filetypes that do not contain metadata. """ | 6 | """ This is the parser for filetypes that do not contain metadata. """ |
| 7 | mimetypes = {'application/xml', 'text/plain', 'application/rdf+xml'} | 7 | mimetypes = {'application/xml', 'text/plain', 'text/xml', 'application/rdf+xml'} |
| 8 | 8 | ||
| 9 | def __init__(self, filename: str) -> None: | 9 | def __init__(self, filename: str) -> None: |
| 10 | super().__init__(filename) | 10 | super().__init__(filename) |
