From f47bcddb5bf0f5edf3abffb2f0604a2f79a83ec6 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sat, 21 May 2022 19:35:33 +0200 Subject: LibCore: Set mime type for .sheets files to `application/x-sheets+json` This is our own format, used by Spreadsheet. --- Userland/Libraries/LibCore/MimeData.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland/Libraries/LibCore') 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) -- cgit v1.2.3