Skip to content

Commit

Permalink
fix supported mime XML -> xml for rssParser (mime normalized to lower…
Browse files Browse the repository at this point in the history
… case for comparison)

+ add mime text/xml as in use for rss in the wild
  • Loading branch information
reger committed Sep 23, 2016
1 parent b5ba8f9 commit efcb6a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/net/yacy/document/parser/rssParser.java
Expand Up @@ -51,8 +51,9 @@ public rssParser() {
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");
}
Expand Down Expand Up @@ -106,7 +107,7 @@ public Document[] parse(
docs.add(doc);
} catch (final MalformedURLException e) {
continue;
}
}

final Document[] da = new Document[docs.size()];
docs.toArray(da);
Expand Down

0 comments on commit efcb6a1

Please sign in to comment.