LibWeb: Add "image/x‑portable‑bitmap" mime type for pbm file extension

This commit is contained in:
Hüseyin ASLITÜRK 2020-06-20 13:13:38 +03:00 committed by Andreas Kling
parent 58c3356472
commit 41d5531624
Notes: sideshowbarker 2024-07-19 05:29:06 +09:00

View file

@ -79,6 +79,8 @@ String mime_type_from_content_type(const String& content_type)
static String guess_mime_type_based_on_filename(const URL& url)
{
if (url.path().ends_with(".pbm"))
return "image/xportablebitmap";
if (url.path().ends_with(".png"))
return "image/png";
if (url.path().ends_with(".gif"))