mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-09 05:06:04 +00:00
Update ResourceServer.cs
This commit is contained in:
parent
96bd29c06a
commit
6722704859
|
@ -140,8 +140,7 @@ namespace WelsonJS.Launcher
|
||||||
context.Response.ContentLength64 = data.Length;
|
context.Response.ContentLength64 = data.Length;
|
||||||
using (Stream outputStream = context.Response.OutputStream)
|
using (Stream outputStream = context.Response.OutputStream)
|
||||||
{
|
{
|
||||||
context.Response.OutputStream.Write(data, 0, data.Length);
|
outputStream.Write(data, 0, data.Length);
|
||||||
context.Response.OutputStream.Close();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,8 +161,7 @@ namespace WelsonJS.Launcher
|
||||||
context.Response.ContentLength64 = data.Length;
|
context.Response.ContentLength64 = data.Length;
|
||||||
using (Stream outputStream = context.Response.OutputStream)
|
using (Stream outputStream = context.Response.OutputStream)
|
||||||
{
|
{
|
||||||
context.Response.OutputStream.Write(data, 0, data.Length);
|
outputStream.Write(data, 0, data.Length);
|
||||||
context.Response.OutputStream.Close();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user