Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
add type attribute to atom feed <link> tag (for /yacysearch.atom)
reger19e35a9126c8
diff --git a/htroot/yacysearchitem.atom b/htroot/yacysearchitem.atomindex f75f3f73c..e4af642c5 100644--- a/htroot/yacysearchitem.atom+++ b/htroot/yacysearchitem.atom@@ -1,6 +1,6 @@#(content)#::<entry><title type="html">#[title-xml]#</title>-<link href="#[link]#" />+<link href="#[link]#" type="#[mimetype]#" /><summary type="html">#[description-xml]#</summary><updated>#[date822]#</updated><dc:publisher><![CDATA[#[publisher]#]]></dc:publisher>diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.javaindex 0e49af506..d21e38d9c 100644--- a/htroot/yacysearchitem.java+++ b/htroot/yacysearchitem.java@@ -227,6 +227,7 @@ public class yacysearchitem {prop.put("content_description", desc);prop.putXML("content_description-xml", desc);prop.putJSON("content_description-json", desc);+ prop.put("content_mimetype",result.getNode().mime()); // for atom <link> type attributefinal HeuristicResult heuristic = theSearch.getHeuristic(result.hash());if (heuristic == null) {prop.put("content_heuristic", 0);