refactor: Append header, not Add
This commit is contained in:
parent
d98875ebdc
commit
9ceec5ca1a
@ -31,7 +31,7 @@ public class RawArticle : PageModel
|
|||||||
return NotFound();
|
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();
|
using Utf8ValueStringBuilder builder = ZString.CreateUtf8StringBuilder();
|
||||||
builder.AppendLine("# " + post.Title);
|
builder.AppendLine("# " + post.Title);
|
||||||
|
Loading…
Reference in New Issue
Block a user