mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
Correct RSS endpoint content type (fixes #169)
This commit is contained in:
parent
210f341bc3
commit
255a8526e9
1 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,8 @@ defmodule PhilomenaWeb.Api.Rss.WatchedController do
|
|||
|
||||
# NB: this is RSS, but using the RSS format causes Phoenix not to
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue