diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-03-13 15:01:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-13 15:01:49 -0400 |
| commit | afb4a08bfe94da3b29d6f962665f93824e94f203 (patch) | |
| tree | cf21a536f930f54e3847bf243afb130276c3097c /Emby.Server.Implementations/HttpServer/HttpResultFactory.cs | |
| parent | 7ae1de52b45267e399b6cbbaa423665bb006bf79 (diff) | |
| parent | a9b61af1549770b5a3c613c6b552f8bb698e9870 (diff) | |
Merge pull request #2525 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/HttpResultFactory.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/HttpResultFactory.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs index e3f105941..310161d41 100644 --- a/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs +++ b/Emby.Server.Implementations/HttpServer/HttpResultFactory.cs @@ -556,12 +556,13 @@ namespace Emby.Server.Implementations.HttpServer { var rangeHeader = requestContext.Headers.Get("Range"); - if (!isHeadRequest && !string.IsNullOrWhiteSpace(options.Path) && options.FileShare == FileShareMode.Read) + if (!isHeadRequest && !string.IsNullOrWhiteSpace(options.Path)) { return new FileWriter(options.Path, contentType, rangeHeader, _logger, _fileSystem) { OnComplete = options.OnComplete, - OnError = options.OnError + OnError = options.OnError, + FileShare = options.FileShare }; } |
