From 8f35f448b6779c608028864c1cdeb02ee5d8ffdf Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Wed, 6 Nov 2024 14:37:58 +0000 Subject: [PATCH] fix: allow viewing of RSS feed in browser fixes Content-Type to return application/xml not application/rss+xml --- OliverBooth/Controllers/Blog/RssController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OliverBooth/Controllers/Blog/RssController.cs b/OliverBooth/Controllers/Blog/RssController.cs index 04cd16d..1c91379 100644 --- a/OliverBooth/Controllers/Blog/RssController.cs +++ b/OliverBooth/Controllers/Blog/RssController.cs @@ -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();