diff options
author | Hüseyin ASLITÜRK <asliturk@hotmail.com> | 2020-06-21 23:08:47 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-22 18:11:22 +0200 |
commit | 97aca8f25171b8bacca7ba62aaf730e2eb8e266d (patch) | |
tree | 66ed62e35d9b1b169051363acc623cbbc466e3e0 | |
parent | 7f30d933b529e739a697516faf290357b2159a13 (diff) | |
download | serenity-97aca8f25171b8bacca7ba62aaf730e2eb8e266d.zip |
LibWeb: Add "image/x‑portable‑pixmap" mime type for pbm file extension
-rw-r--r-- | Libraries/LibWeb/Loader/Resource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Loader/Resource.cpp b/Libraries/LibWeb/Loader/Resource.cpp index 905339c5e9..780c3b4113 100644 --- a/Libraries/LibWeb/Loader/Resource.cpp +++ b/Libraries/LibWeb/Loader/Resource.cpp @@ -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")) |