mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-07 12:16: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;
|
||||
using (Stream outputStream = context.Response.OutputStream)
|
||||
{
|
||||
context.Response.OutputStream.Write(data, 0, data.Length);
|
||||
context.Response.OutputStream.Close();
|
||||
outputStream.Write(data, 0, data.Length);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,8 +161,7 @@ namespace WelsonJS.Launcher
|
|||
context.Response.ContentLength64 = data.Length;
|
||||
using (Stream outputStream = context.Response.OutputStream)
|
||||
{
|
||||
context.Response.OutputStream.Write(data, 0, data.Length);
|
||||
context.Response.OutputStream.Close();
|
||||
outputStream.Write(data, 0, data.Length);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user