Skip to content

Commit

Permalink
added mime type image/jpeg (image/jpg is wrong but it is left here be…
Browse files Browse the repository at this point in the history
…cause it does not harm and this error also exists in configuration of web servers)

see also:
http://forum.yacy-websuche.de/viewtopic.php?p=21129#p21129

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7279 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Oct 27, 2010
1 parent 155d556 commit fb92f9a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -76,7 +76,8 @@ public class genericImageParser extends AbstractParser implements Parser {
SUPPORTED_EXTENSIONS.add("bmp");
SUPPORTED_MIME_TYPES.add("image/png");
SUPPORTED_MIME_TYPES.add("image/gif");
SUPPORTED_MIME_TYPES.add("image/jpg");
SUPPORTED_MIME_TYPES.add("image/jpeg");
SUPPORTED_MIME_TYPES.add("image/jpg"); // this is in fact a 'wrong' mime type. We leave it here because that is a common error that occurs in the internet frequently
SUPPORTED_MIME_TYPES.add("image/bmp");
}

Expand Down

0 comments on commit fb92f9a

Please sign in to comment.