Browse Source

update file options

Luke Pulverenti 8 years ago
parent
commit
5b12e9fa33
1 changed files with 1 additions and 3 deletions
  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)
             {