Update HttpWebServer.cs

pull/70/head
2dust 2019-09-11 11:24:07 +08:00
parent a2cf1cef16
commit 55d540d556
1 changed files with 1 additions and 1 deletions

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;