Simplify detection of valid filetypes for ASL

svn path=/trunk/netsurf/; revision=10861
This commit is contained in:
Chris Young 2010-10-03 22:34:29 +00:00
parent c0b63c111b
commit fb75227b77

View File

@ -825,20 +825,7 @@ static const ULONG ami_asl_mime_hook(struct Hook *mh,struct FileRequester *fr,st
mt = fetch_mimetype(fname); mt = fetch_mimetype(fname);
if(!strcmp(mt,"text/html")) ret = TRUE; if(content_lookup(mt) != CONTENT_OTHER) ret = TRUE;
else if(!strcmp(mt,"text/plain")) ret = TRUE;
else if(!strcmp(mt,"image/jpeg")) ret = TRUE;
else if(!strcmp(mt,"image/gif")) ret = TRUE;
else if(!strcmp(mt,"image/png")) ret = TRUE;
else if(!strcmp(mt,"image/jng")) ret = TRUE;
else if(!strcmp(mt,"image/mng")) ret = TRUE;
else if(!strcmp(mt,"image/bmp")) ret = TRUE;
else if(!strcmp(mt,"image/ico")) ret = TRUE;
else if(!strcmp(mt,"image/x-riscos-sprite")) ret = TRUE;
#ifdef WITH_NS_SVG
else if(!strcmp(mt,"image/svg")) ret = TRUE;
#endif
free(mt); free(mt);
return ret; return ret;
} }