diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-02-26 21:08:30 +0100 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-02-26 22:11:21 +0100 |
| commit | f1c93ae618f293eae4cc384fadfd4440c4e0cf2d (patch) | |
| tree | 84e730652dbc66ad420f20e7842c719452a32cd4 /Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs | |
| parent | 4e229ad86b3a3b6024ca0c29c17e4aac5386a210 (diff) | |
Remove SetContentLength and company
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs b/Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs index 9c8ab8d91..8904e11d3 100644 --- a/Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs +++ b/Emby.Server.Implementations/HttpServer/RangeRequestWriter.cs @@ -96,8 +96,7 @@ namespace Emby.Server.Implementations.HttpServer RangeLength = 1 + RangeEnd - RangeStart; // Content-Length is the length of what we're serving, not the original content - // TODO Headers["Content-Length"] = RangeLength.ToString(UsCulture); - Headers["Content-Range"] = string.Format("bytes {0}-{1}/{2}", RangeStart, RangeEnd, TotalContentLength); + Headers["Content-Range"] = $"bytes {RangeStart}-{RangeEnd}/{TotalContentLength}"; if (RangeStart > 0 && SourceStream.CanSeek) { |
