mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Add "image/x‑portable‑graymap" mime type for pgm file extension
This commit is contained in:
committed by
Andreas Kling
parent
a8b0ad5cc6
commit
0f7a651adc
@@ -88,7 +88,9 @@ static String guess_mime_type_based_on_filename(const URL& url)
|
||||
String lowercase_url = url.path().to_lowercase();
|
||||
if (lowercase_url.ends_with(".pbm"))
|
||||
return "image/x‑portable‑bitmap";
|
||||
if (lowercase_url.ends_with(".png"))
|
||||
if (url.path().ends_with(".pgm"))
|
||||
return "image/x‑portable‑graymap";
|
||||
if (url.path().ends_with(".png"))
|
||||
return "image/png";
|
||||
if (lowercase_url.ends_with(".ppm"))
|
||||
return "image/x‑portable‑pixmap";
|
||||
|
||||
Reference in New Issue
Block a user