Skip to content

Commit cb7c906

Browse files
committed
mock server
1 parent 00a03c1 commit cb7c906

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/TestUtilities/Test.Utility/FileSystemBackedV3MockServer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ private Action<HttpListenerResponse> ServerHandlerV3(HttpListenerRequest request
106106
return new Action<HttpListenerResponse>(response =>
107107
{
108108
response.ContentType = "application/zip";
109+
response.ContentLength64 = file.Length;
109110
using (var stream = file.OpenRead())
110111
{
111112
var content = stream.ReadAllBytes();
112-
SetResponseContent(response, content);
113+
stream.CopyTo(response.OutputStream);
113114
}
114115
});
115116
}

0 commit comments

Comments
 (0)