Treat image/x-png as a synonym for image/png

svn path=/trunk/netsurf/; revision=13414
This commit is contained in:
John Mark Bell 2012-01-29 20:43:59 +00:00
parent f3aa0a5179
commit 0fad29846b
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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);