mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-04 19:45:00 +03:00
Update HttpWebServer.cs
This commit is contained in:
@@ -60,7 +60,7 @@ namespace v2rayN.HttpProxyHandler
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
string rstr = _responderMethod(ctx.Request);
|
string rstr = _responderMethod(ctx.Request);
|
||||||
byte[] buf = Encoding.UTF8.GetBytes(rstr);
|
byte[] buf = ASCIIEncoding.ASCII.GetBytes(rstr);
|
||||||
ctx.Response.StatusCode = 200;
|
ctx.Response.StatusCode = 200;
|
||||||
ctx.Response.ContentType = "application/x-ns-proxy-autoconfig";
|
ctx.Response.ContentType = "application/x-ns-proxy-autoconfig";
|
||||||
ctx.Response.ContentLength64 = buf.Length;
|
ctx.Response.ContentLength64 = buf.Length;
|
||||||
|
|||||||
Reference in New Issue
Block a user