provider: add fallback for text-based mimetypes.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D4892
This commit is contained in:
Al Poole 2017-05-21 23:22:36 +01:00 committed by Andy Williams
parent 94a0923e29
commit 72c28938c6
1 changed files with 6 additions and 2 deletions

View File

@ -90,9 +90,13 @@ Edi_Content_Provider *edi_content_provider_for_mime_get(const char *mime)
else
{
id = _edi_config_mime_search(mime);
if (!id)
return NULL;
{
if (!strncasecmp(mime, "text/", 5))
id = "text";
else
return NULL;
}
}
return edi_content_provider_for_id_get(id);