mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Make `guess_mime_type_based_on_filename()' recognise CSV files
This commit is contained in:
committed by
Andreas Kling
parent
31523f6c64
commit
8066a623d9
@@ -94,6 +94,8 @@ String guess_mime_type_based_on_filename(const StringView& path)
|
|||||||
return "text/html";
|
return "text/html";
|
||||||
if (path.ends_with("/", CaseSensitivity::CaseInsensitive))
|
if (path.ends_with("/", CaseSensitivity::CaseInsensitive))
|
||||||
return "text/html";
|
return "text/html";
|
||||||
|
if (path.ends_with(".csv", CaseSensitivity::CaseInsensitive))
|
||||||
|
return "text/csv";
|
||||||
return "text/plain";
|
return "text/plain";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user