fix: allow viewing of RSS feed in browser
fixes Content-Type to return application/xml not application/rss+xml
This commit is contained in:
parent
e24e5e5aaa
commit
8f35f448b6
@ -22,10 +22,10 @@ public class RssController : Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Produces("application/rss+xml")]
|
[Produces("application/xml")]
|
||||||
public IActionResult OnGet()
|
public IActionResult OnGet()
|
||||||
{
|
{
|
||||||
Response.ContentType = "application/rss+xml";
|
Response.ContentType = "application/xml";
|
||||||
|
|
||||||
var baseUrl = $"https://{Request.Host}/blog";
|
var baseUrl = $"https://{Request.Host}/blog";
|
||||||
var blogItems = new List<BlogItem>();
|
var blogItems = new List<BlogItem>();
|
||||||
|
Loading…
Reference in New Issue
Block a user