Correct RSS endpoint content type (fixes #169)

This commit is contained in:
byte[] 2022-10-31 08:44:01 -04:00
parent 210f341bc3
commit 255a8526e9

View file

@ -13,6 +13,8 @@ defmodule PhilomenaWeb.Api.Rss.WatchedController do
# NB: this is RSS, but using the RSS format causes Phoenix not to # NB: this is RSS, but using the RSS format causes Phoenix not to
# escape HTML # escape HTML
render(conn, "index.html", layout: false, images: images) conn
|> put_resp_header("content-type", "application/rss+xml")
|> render("index.html", layout: false, images: images)
end end
end end