Commit 00604a3a authored by Tristan Cavelier's avatar Tristan Cavelier

ooo.getAllowedExtensionList: keep source format in result list

fix backward compatibily + update test
parent 6fe9f889
...@@ -241,7 +241,7 @@ class Handler(object): ...@@ -241,7 +241,7 @@ class Handler(object):
continue continue
if ext: if ext:
mimetype, _ = mimetypes.guess_type("a." + ext) # XXX never guess mimetype, _ = mimetypes.guess_type("a." + ext) # XXX never guess
if mimetype and mimetype != parsed_mimetype_type: if mimetype:
output_set.add((mimetype, title)) output_set.add((mimetype, title))
return list(output_set) return list(output_set)
......
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