about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-02-08 07:37:43 +0000
committerEric Wong <e@80x24.org>2016-02-08 07:40:07 +0000
commita599fed57ab19616feb803b109fc0a0802f1304c (patch)
tree7e4878e0cf03060c4eb34addfdbe2d7684d36c22 /lib/PublicInbox/Feed.pm
parent0af0bd903b9b5aede71155ce8756e01a229b40bb (diff)
downloadpublic-inbox-a599fed57ab19616feb803b109fc0a0802f1304c.tar.gz
It seems we need to declare "alternate" and "text/html" at least
for feed readers.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 65514eb6..bbc89f2f 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -55,7 +55,8 @@ sub atom_header {
         qq(<?xml version="1.0" encoding="us-ascii"?>\n) .
         qq{<feed\nxmlns="http://www.w3.org/2005/Atom">} .
         qq{$title} .
-        qq(<link\nhref="$feed_opts->{url}"/>) .
+        qq(<link\nrel="alternate"\ntype="text/html") .
+                qq(\nhref="$feed_opts->{url}"/>) .
         qq(<link\nrel="self"\nhref="$feed_opts->{atomurl}"/>) .
         qq(<id>mailto:$feed_opts->{id_addr}</id>);
 }