1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

LibCore: Set mime type for .sheets files to application/x-sheets+json

This is our own format, used by Spreadsheet.
This commit is contained in:
Karol Kosek 2022-05-21 19:35:33 +02:00 committed by Ali Mohammad Pur
parent 1621724123
commit f47bcddb5b

View file

@ -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)