*) Bugfix for not parsable application/xhtml+xml resources if

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
pull/1/head
theli 19 years ago
parent b0ca5fa784
commit 24a02cbeef

@ -45,11 +45,14 @@ public class plasmaParserConfig {
// 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) {

Loading…
Cancel
Save