LibCore: Support xml in guess_mime_type_based_on_filename()
This commit is contained in:
parent
d876f32e5d
commit
fea58a4160
Notes:
sideshowbarker
2024-07-16 21:30:46 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/fea58a4160 Pull-request: https://github.com/SerenityOS/serenity/pull/23999
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ static Array const s_registered_mime_type = {
|
|||
MimeType { .name = "text/css"sv, .common_extensions = { ".css"sv }, .description = "Cascading Style Sheet"sv },
|
||||
MimeType { .name = "text/csv"sv, .common_extensions = { ".csv"sv }, .description = "CSV text"sv },
|
||||
MimeType { .name = "text/html"sv, .common_extensions = { ".html"sv, ".htm"sv, ".xht"sv, "/"sv }, .description = "HTML document"sv }, // FIXME: The "/" seems dubious
|
||||
MimeType { .name = "text/xml"sv, .common_extensions = { ".xml"sv }, .description = "XML document"sv },
|
||||
MimeType { .name = "text/markdown"sv, .common_extensions = { ".md"sv }, .description = "Markdown document"sv },
|
||||
MimeType { .name = "text/plain"sv, .common_extensions = Vector(s_plaintext_suffixes.span()), .description = "plain text"sv },
|
||||
MimeType { .name = "text/x-shellscript"sv, .common_extensions = { ".sh"sv }, .description = "POSIX shell script text executable"sv, .magic_bytes = Vector<u8> { '#', '!', '/', 'b', 'i', 'n', '/', 's', 'h', '\n' } },
|
||||
|
|
Loading…
Add table
Reference in a new issue