Skip to content

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

fix supported mime XML -> xml for rssParser (mime normalized to lower case for comparison) + add mime text/xml as in use for rss in the wild

regerefcb6a1e74cd
diff --git a/source/net/yacy/document/parser/rssParser.java b/source/net/yacy/document/parser/rssParser.java
index 0897c805c..093f4cc77 100644
--- a/source/net/yacy/document/parser/rssParser.java
+++ b/source/net/yacy/document/parser/rssParser.java
@@ -51,8 +51,9 @@ public class rssParser extends AbstractParser implements Parser {
super("RSS Parser");
this.SUPPORTED_EXTENSIONS.add("rss");
this.SUPPORTED_EXTENSIONS.add("xml");
- this.SUPPORTED_MIME_TYPES.add("XML");
+ this.SUPPORTED_MIME_TYPES.add("xml");
this.SUPPORTED_MIME_TYPES.add("text/rss");
+ this.SUPPORTED_MIME_TYPES.add("text/xml");
this.SUPPORTED_MIME_TYPES.add("application/rss+xml");
this.SUPPORTED_MIME_TYPES.add("application/atom+xml");
}
@@ -106,7 +107,7 @@ public class rssParser extends AbstractParser implements Parser {
docs.add(doc);
} catch (final MalformedURLException e) {
continue;
- }
+ }
final Document[] da = new Document[docs.size()];
docs.toArray(da);