LibCore: Make `guess_mime_type_based_on_filename()' recognise CSV files

This commit is contained in:
AnotherTest 2020-11-23 16:16:27 +03:30 committed by Andreas Kling
parent 31523f6c64
commit 8066a623d9
Notes: sideshowbarker 2024-07-19 01:16:32 +09:00

View file

@ -94,6 +94,8 @@ String guess_mime_type_based_on_filename(const StringView& path)
return "text/html";
if (path.ends_with("/", CaseSensitivity::CaseInsensitive))
return "text/html";
if (path.ends_with(".csv", CaseSensitivity::CaseInsensitive))
return "text/csv";
return "text/plain";
}