Kaynağa Gözat

update file options

Luke Pulverenti 8 yıl önce
ebeveyn
işleme
5b12e9fa33

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

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