Update HttpWebServer.cs

This commit is contained in:
2dust 2019-09-11 11:24:07 +08:00
parent a2cf1cef16
commit 55d540d556

View file

@ -60,7 +60,7 @@ namespace v2rayN.HttpProxyHandler
try
{
string rstr = _responderMethod(ctx.Request);
byte[] buf = Encoding.UTF8.GetBytes(rstr);
byte[] buf = ASCIIEncoding.ASCII.GetBytes(rstr);
ctx.Response.StatusCode = 200;
ctx.Response.ContentType = "application/x-ns-proxy-autoconfig";
ctx.Response.ContentLength64 = buf.Length;