WebService: using async call

This commit is contained in:
Shreyas Zare
2021-01-23 14:24:48 +05:30
parent df23d14bdf
commit 02b4dae0f5

View File

@@ -592,9 +592,10 @@ namespace DnsServerCore
response.ContentEncoding = Encoding.UTF8;
response.ContentLength64 = mS.Length;
mS.Position = 0;
using (Stream stream = response.OutputStream)
{
mS.WriteTo(response.OutputStream);
await mS.CopyToAsync(stream);
}
}
}