From 0fad29846bd8bb4c5d67924987df921e77be7434 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 29 Jan 2012 20:43:59 +0000 Subject: Treat image/x-png as a synonym for image/png svn path=/trunk/netsurf/; revision=13414 --- image/mng.c | 3 ++- image/png.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/image/mng.c b/image/mng.c index 7e113bebe..32e3a2f75 100644 --- a/image/mng.c +++ b/image/mng.c @@ -818,7 +818,8 @@ static const char *nsjpng_types[] = { "image/jng", "image/x-jng", /* PNG types*/ - "image/png" + "image/png", + "image/x-png" }; CONTENT_FACTORY_REGISTER_TYPES(nsjpng, nsjpng_types, nsjpng_content_handler); diff --git a/image/png.c b/image/png.c index 7c0aa56f1..829eee272 100644 --- a/image/png.c +++ b/image/png.c @@ -593,7 +593,8 @@ static const content_handler nspng_content_handler = { }; static const char *nspng_types[] = { - "image/png" + "image/png", + "image/x-png" }; CONTENT_FACTORY_REGISTER_TYPES(nspng, nspng_types, nspng_content_handler); -- cgit v1.2.3