diff --git a/DnsServerCore/WebService.cs b/DnsServerCore/WebService.cs index ef39cdfc..c7f3bbc3 100644 --- a/DnsServerCore/WebService.cs +++ b/DnsServerCore/WebService.cs @@ -567,7 +567,7 @@ namespace DnsServerCore private static async Task SendFileAsync(HttpListenerResponse response, string filePath) { - using (FileStream fS = new FileStream(filePath, FileMode.Open, FileAccess.Read)) + using (FileStream fS = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { response.ContentType = WebUtilities.GetContentType(filePath).MediaType; response.ContentLength64 = fS.Length;