LibWeb: Add "image/x‑portable‑pixmap" mime type for pbm file extension
This commit is contained in:
parent
7f30d933b5
commit
97aca8f251
Notes:
sideshowbarker
2024-07-19 05:27:04 +09:00
Author: https://github.com/asliturk Commit: https://github.com/SerenityOS/serenity/commit/97aca8f2517 Pull-request: https://github.com/SerenityOS/serenity/pull/2611
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ static String guess_mime_type_based_on_filename(const URL& url)
|
|||
return "image/x‑portable‑bitmap";
|
||||
if (url.path().ends_with(".png"))
|
||||
return "image/png";
|
||||
if (url.path().ends_with(".ppm"))
|
||||
return "image/x‑portable‑pixmap";
|
||||
if (url.path().ends_with(".gif"))
|
||||
return "image/gif";
|
||||
if (url.path().ends_with(".bmp"))
|
||||
|
|
Loading…
Add table
Reference in a new issue