ignoring error

This commit is contained in:
Shreyas Zare
2019-01-14 11:26:57 +05:30
parent cfc1b57ee4
commit e751dd3e18

View File

@@ -522,9 +522,16 @@ namespace DnsServerCore
response.AddHeader("Cache-Control", "private, max-age=300"); response.AddHeader("Cache-Control", "private, max-age=300");
using (Stream stream = response.OutputStream) using (Stream stream = response.OutputStream)
{
try
{ {
fS.CopyTo(stream); fS.CopyTo(stream);
} }
catch (HttpListenerException)
{
//ignore this error
}
}
} }
} }