fix: allow viewing of RSS feed in browser

fixes Content-Type to return application/xml not application/rss+xml
This commit is contained in:
Oliver Booth 2024-11-06 14:37:58 +00:00
parent e24e5e5aaa
commit 8f35f448b6
Signed by: oliverbooth
GPG Key ID: 2A862C3F46178E8E

View File

@ -22,10 +22,10 @@ public class RssController : Controller
}
[HttpGet]
[Produces("application/rss+xml")]
[Produces("application/xml")]
public IActionResult OnGet()
{
Response.ContentType = "application/rss+xml";
Response.ContentType = "application/xml";
var baseUrl = $"https://{Request.Host}/blog";
var blogItems = new List<BlogItem>();