summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2022-05-21 19:35:33 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-05-22 03:08:53 +0430
commitf47bcddb5bf0f5edf3abffb2f0604a2f79a83ec6 (patch)
tree08d604e521600d2cd5681f8e3c7d52590104ec4e /Userland/Libraries/LibCore
parent1621724123d0ad598a79d55f5af36bcf359f5101 (diff)
downloadserenity-f47bcddb5bf0f5edf3abffb2f0604a2f79a83ec6.zip
LibCore: Set mime type for .sheets files to `application/x-sheets+json`
This is our own format, used by Spreadsheet.
Diffstat (limited to 'Userland/Libraries/LibCore')
-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 ae94d041f9..4ee2a3d955 100644
--- a/Userland/Libraries/LibCore/MimeData.cpp
+++ b/Userland/Libraries/LibCore/MimeData.cpp
@@ -89,6 +89,8 @@ String guess_mime_type_based_on_filename(StringView path)
return "text/html";
if (path.ends_with(".csv", CaseSensitivity::CaseInsensitive))
return "text/csv";
+ if (path.ends_with(".sheets", CaseSensitivity::CaseInsensitive))
+ return "application/x-sheets+json";
// FIXME: Share this, TextEditor and HackStudio language detection somehow.
auto basename = LexicalPath::basename(path);
if (path.ends_with(".cpp", CaseSensitivity::CaseInsensitive)