LibWeb: Add "image/x‑portable‑graymap" mime type for pgm file extension
This commit is contained in:
parent
a8b0ad5cc6
commit
0f7a651adc
Notes:
sideshowbarker
2024-07-19 05:21:43 +09:00
Author: https://github.com/asliturk Commit: https://github.com/SerenityOS/serenity/commit/0f7a651adcd Pull-request: https://github.com/SerenityOS/serenity/pull/2633
1 changed files with 3 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue