Skip to content

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

add type attribute to atom feed <link> tag (for /yacysearch.atom)

reger19e35a9126c8
diff --git a/htroot/yacysearchitem.atom b/htroot/yacysearchitem.atom
index 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.java
index 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 attribute
final HeuristicResult heuristic = theSearch.getHeuristic(result.hash());
if (heuristic == null) {
prop.put("content_heuristic", 0);