mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-10 22:45:00 +03:00
Update HttpWebServerB.cs
This commit is contained in:
@@ -64,7 +64,7 @@ namespace v2rayN.HttpProxyHandler
|
|||||||
BinaryWriter writer = new BinaryWriter(netStream);
|
BinaryWriter writer = new BinaryWriter(netStream);
|
||||||
//writeSuccess(writer, pac);
|
//writeSuccess(writer, pac);
|
||||||
|
|
||||||
Byte[] sendBytes = Encoding.UTF8.GetBytes(writeSuccess(pac));
|
Byte[] sendBytes = ASCIIEncoding.ASCII.GetBytes(writeSuccess(pac));
|
||||||
writer.Write(sendBytes, 0, sendBytes.Length);
|
writer.Write(sendBytes, 0, sendBytes.Length);
|
||||||
writer.Flush();
|
writer.Flush();
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ namespace v2rayN.HttpProxyHandler
|
|||||||
|
|
||||||
sb.Append("HTTP/1.0 200 OK");
|
sb.Append("HTTP/1.0 200 OK");
|
||||||
sb.AppendLine();
|
sb.AppendLine();
|
||||||
sb.Append(String.Format("Content-Type:{0};charset=utf-8", content_type));
|
sb.Append(String.Format("Content-Type:{0};", content_type));
|
||||||
sb.AppendLine();
|
sb.AppendLine();
|
||||||
//sb.Append("Connection: close");
|
//sb.Append("Connection: close");
|
||||||
//sb.AppendLine();
|
//sb.AppendLine();
|
||||||
|
|||||||
Reference in New Issue
Block a user