Skip to content

Commit

Permalink
*) Bugfix for not parsable application/xhtml+xml resources if
Browse files Browse the repository at this point in the history
   an URL has no extension
   See: http://www.yacy-forum.de/viewtopic.php?p=23687

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2280 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Jul 7, 2006
1 parent b0ca5fa commit 24a02cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/de/anomic/plasma/plasmaParserConfig.java
Expand Up @@ -45,11 +45,14 @@ public boolean supportedContent(URL url, String mimeType) {
// TODO: we need some exceptions here to index URLs like this
// http://www.musicabona.com/respighi/12668/cd/index.html.fr
mimeType = plasmaParser.getRealMimeType(mimeType);
if (mimeType.equals("text/html")) {
if (
mimeType.equals("text/html") ||
mimeType.equals("application/xhtml+xml") ||
mimeType.equals("text/plain")
) {
return supportedMimeTypesContains(mimeType);
} else {
return supportedMimeTypesContains(mimeType) && supportedFileExt(url);
}
return supportedMimeTypesContains(mimeType) && supportedFileExt(url);
}

public boolean supportedMimeTypesContains(String mimeType) {
Expand Down

0 comments on commit 24a02cb

Please sign in to comment.