1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibCore: Add MIME type string for TGA files

This commit is contained in:
Liav A 2023-01-20 02:59:59 +02:00 committed by Linus Groh
parent e77b110541
commit fedd18eb89
Notes: sideshowbarker 2024-07-17 01:29:07 +09:00

View file

@ -71,6 +71,8 @@ StringView guess_mime_type_based_on_filename(StringView path)
return "image/x-qoi"sv;
if (path.ends_with(".svg"sv, CaseSensitivity::CaseInsensitive))
return "image/svg+xml"sv;
if (path.ends_with(".tga"sv, CaseSensitivity::CaseInsensitive))
return "image/x-targa"sv;
if (path.ends_with(".md"sv, CaseSensitivity::CaseInsensitive))
return "text/markdown"sv;
if (path.ends_with(".html"sv, CaseSensitivity::CaseInsensitive) || path.ends_with(".htm"sv, CaseSensitivity::CaseInsensitive))