refactor: Append header, not Add

This commit is contained in:
Oliver Booth 2024-03-02 01:29:01 +00:00
parent d98875ebdc
commit 9ceec5ca1a
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
1 changed files with 1 additions and 1 deletions

View File

@ -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);