summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2023-01-20 02:59:59 +0200
committerLinus Groh <mail@linusgroh.de>2023-01-20 15:13:31 +0000
commitfedd18eb89db0f9a6b8047cd2a5a7d716cca9544 (patch)
tree5caf8d8959449f5f67cdb182fa27ea7ed2b17cff
parente77b1105419dadaf9ced8c9772c12dc6c4f6ee7f (diff)
downloadserenity-fedd18eb89db0f9a6b8047cd2a5a7d716cca9544.zip
LibCore: Add MIME type string for TGA files
-rw-r--r--Userland/Libraries/LibCore/MimeData.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/MimeData.cpp b/Userland/Libraries/LibCore/MimeData.cpp
index b5b31323be..d679ea53b3 100644
--- a/Userland/Libraries/LibCore/MimeData.cpp
+++ b/Userland/Libraries/LibCore/MimeData.cpp
@@ -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))