Explorar o código

update file options

Luke Pulverenti %!s(int64=8) %!d(string=hai) anos
pai
achega
5b12e9fa33
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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)
             {