From 9ceec5ca1a7ec2d9d2499dc1f0c2372482f60f5b Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 2 Mar 2024 01:29:01 +0000 Subject: [PATCH] refactor: Append header, not Add --- OliverBooth/Pages/Blog/RawArticle.cshtml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OliverBooth/Pages/Blog/RawArticle.cshtml.cs b/OliverBooth/Pages/Blog/RawArticle.cshtml.cs index 73eb273..d8fbbea 100644 --- a/OliverBooth/Pages/Blog/RawArticle.cshtml.cs +++ b/OliverBooth/Pages/Blog/RawArticle.cshtml.cs @@ -31,7 +31,7 @@ public class RawArticle : PageModel return NotFound(); } - Response.Headers.Add("Content-Type", "text/plain; charset=utf-8"); + Response.Headers.Append("Content-Type", "text/plain; charset=utf-8"); using Utf8ValueStringBuilder builder = ZString.CreateUtf8StringBuilder(); builder.AppendLine("# " + post.Title);