forked from enlightenment/edi
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:
parent
2d86f50a26
commit
11fa36b145
|
@ -90,9 +90,13 @@ Edi_Content_Provider *edi_content_provider_for_mime_get(const char *mime)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
id = _edi_config_mime_search(mime);
|
id = _edi_config_mime_search(mime);
|
||||||
|
|
||||||
if (!id)
|
if (!id)
|
||||||
return NULL;
|
{
|
||||||
|
if (!strncasecmp(mime, "text/", 5))
|
||||||
|
id = "text";
|
||||||
|
else
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return edi_content_provider_for_id_get(id);
|
return edi_content_provider_for_id_get(id);
|
||||||
|
|
Loading…
Reference in New Issue