Luke Pulverenti 8 роки тому
батько
коміт
5b12e9fa33
1 змінених файлів з 1 додано та 3 видалено
  1. 1 3
      SocketHttpListener/Net/HttpResponseStream.Managed.cs

+ 1 - 3
SocketHttpListener/Net/HttpResponseStream.Managed.cs

@@ -357,9 +357,7 @@ namespace SocketHttpListener.Net
             //    allowAsync = true;
             //}
 
-            var fileOpenOptions = offset > 0
-                ? FileOpenOptions.RandomAccess
-                : FileOpenOptions.SequentialScan;
+            var fileOpenOptions = FileOpenOptions.SequentialScan;
 
             if (allowAsync)
             {