mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +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:
parent
1621724123
commit
f47bcddb5b
Notes:
sideshowbarker
2024-07-17 17:06:59 +09:00
Author: https://github.com/krkk
Commit: f47bcddb5b
Pull-request: https://github.com/SerenityOS/serenity/pull/14080
Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue