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:
parent
e77b110541
commit
fedd18eb89
Notes:
sideshowbarker
2024-07-17 01:29:07 +09:00
Author: https://github.com/supercomputer7
Commit: fedd18eb89
Pull-request: https://github.com/SerenityOS/serenity/pull/17101
Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue