summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 22:49:21 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 22:49:21 +0200
commit1853082fcd8c067390c246f9daa01a9b47387497 (patch)
tree8eaae12d8047a40e29d3ea7ff3116b5c869e04bd
parent00c9b057c3ad0bcec83b03f24af14f2cd35b408d (diff)
rss: fix self link to include .xml suffix
/rss/updates without format suffix returns HTTP 406 when the client does not send an appropriate Accept header. The self link in the Atom feed was pointing to the format-less URL, causing feed readers that follow the self link to hit the 406. Fixed to /rss/updates.xml.
-rw-r--r--app/views/rss/updates.xml.builder2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/rss/updates.xml.builder b/app/views/rss/updates.xml.builder
index 0ea08fa..4b2e2f7 100644
--- a/app/views/rss/updates.xml.builder
+++ b/app/views/rss/updates.xml.builder
@@ -3,7 +3,7 @@ xml.instruct!
3xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do 3xml.feed(:xmlns => "http://www.w3.org/2005/Atom", "xml:base" => @host) do
4 xml.title("Chaos Computer Club Updates") 4 xml.title("Chaos Computer Club Updates")
5 xml.link(:href => "https://www.ccc.de/") 5 xml.link(:href => "https://www.ccc.de/")
6 xml.link(:rel => "self", :href => "#{@host}/rss/updates") 6 xml.link(:rel => "self", :href => "#{@host}/rss/updates.xml")
7 xml.updated(@items.first.published_at.xmlschema) 7 xml.updated(@items.first.published_at.xmlschema)
8 xml.author do 8 xml.author do
9 xml.name("Chaos Computer Club e.V.") 9 xml.name("Chaos Computer Club e.V.")