It's Riseup's twentieth year, help keep us going! If you can afford it, please contribute to our winter fundraising drive.

Commit cce5de82 authored by atenart's avatar atenart

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: atenart's avatarAntoine Tenart <antoine.tenart@ack.tf>
parent 484e26dd
Pipeline #15969 passed with stages
in 2 minutes and 16 seconds
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment