final fix
This commit is contained in:
@@ -469,6 +469,7 @@ public class ApiServer : IApiServer
|
|||||||
{
|
{
|
||||||
Log.Info("Sending raw bytes response for " + context.Request.RawUrl);
|
Log.Info("Sending raw bytes response for " + context.Request.RawUrl);
|
||||||
context.Response.ContentType = "application/octet-stream";
|
context.Response.ContentType = "application/octet-stream";
|
||||||
|
context.Response.ContentLength64 = resultBytes.Length;
|
||||||
context.Response.OutputStream.Write(resultBytes, 0, resultBytes.Length);
|
context.Response.OutputStream.Write(resultBytes, 0, resultBytes.Length);
|
||||||
context.Response.OutputStream.Flush();
|
context.Response.OutputStream.Flush();
|
||||||
}
|
}
|
||||||
@@ -476,6 +477,7 @@ public class ApiServer : IApiServer
|
|||||||
{
|
{
|
||||||
Log.Info("Sending stream response for " + context.Request.RawUrl);
|
Log.Info("Sending stream response for " + context.Request.RawUrl);
|
||||||
context.Response.ContentType = "application/octet-stream";
|
context.Response.ContentType = "application/octet-stream";
|
||||||
|
context.Response.ContentLength64 = resultStream.Length;
|
||||||
resultStream.CopyTo(context.Response.OutputStream);
|
resultStream.CopyTo(context.Response.OutputStream);
|
||||||
context.Response.OutputStream.Flush();
|
context.Response.OutputStream.Flush();
|
||||||
resultStream.Close();
|
resultStream.Close();
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>2.11.0</Version>
|
<Version>2.11.1</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user