mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:18:11 +00:00
LibCore: Make `guess_mime_type_based_on_filename()' recognise CSV files
This commit is contained in:
parent
31523f6c64
commit
8066a623d9
1 changed files with 2 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue