mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-06 08:45:32 +00:00
WebService: using async call
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user