访问拦截信息设置UTF-8编码
This commit is contained in:
parent
2f9ed799c5
commit
432d0aa24f
|
@ -74,7 +74,7 @@ public class RunTimeMiddleware
|
|||
else if (rule.BlockCode > 0)
|
||||
{
|
||||
ctx.Response.StatusCode = rule.BlockCode;
|
||||
ctx.Response.ContentType = "text/html";
|
||||
ctx.Response.ContentType = "text/html; charset=utf-8";
|
||||
await ctx.Response.WriteAsync(rule.BlockContent);
|
||||
await ctx.Response.CompleteAsync();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue