Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added mime type image/jpeg (image/jpg is wrong but it is left here because 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

orbiterfb92f9ae8e20
diff --git a/source/net/yacy/document/parser/images/genericImageParser.java b/source/net/yacy/document/parser/images/genericImageParser.java
index c8af53bb2..484211e9b 100644
--- a/source/net/yacy/document/parser/images/genericImageParser.java
+++ b/source/net/yacy/document/parser/images/genericImageParser.java
@@ -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");
}