mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2025-12-25 19:08:53 +00:00
ignoring error
This commit is contained in:
@@ -522,9 +522,16 @@ namespace DnsServerCore
|
||||
response.AddHeader("Cache-Control", "private, max-age=300");
|
||||
|
||||
using (Stream stream = response.OutputStream)
|
||||
{
|
||||
try
|
||||
{
|
||||
fS.CopyTo(stream);
|
||||
}
|
||||
catch (HttpListenerException)
|
||||
{
|
||||
//ignore this error
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user