[project @ 2004-04-20 18:27:46 by bursa]

Make Content-Type type comparison case-insensitive (reported by Rien Mertens).

svn path=/import/netsurf/; revision=795
This commit is contained in:
James Bursa 2004-04-20 18:27:46 +00:00
parent 0422445008
commit 83a61530dc

View File

@ -157,7 +157,7 @@ content_type content_lookup(const char *mime_type)
{
struct mime_entry *m;
m = bsearch(mime_type, mime_map, MIME_MAP_COUNT, sizeof(mime_map[0]),
(int (*)(const void *, const void *)) strcmp);
(int (*)(const void *, const void *)) strcasecmp);
if (m == 0) {
#ifdef riscos
#ifdef WITH_PLUGIN