aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/StreamWriter.cs
diff options
context:
space:
mode:
authorClaus Vium <clausvium@gmail.com>2019-02-26 21:08:30 +0100
committerClaus Vium <clausvium@gmail.com>2019-02-26 22:11:21 +0100
commitf1c93ae618f293eae4cc384fadfd4440c4e0cf2d (patch)
tree84e730652dbc66ad420f20e7842c719452a32cd4 /Emby.Server.Implementations/HttpServer/StreamWriter.cs
parent4e229ad86b3a3b6024ca0c29c17e4aac5386a210 (diff)
Remove SetContentLength and company
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/StreamWriter.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/StreamWriter.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/Emby.Server.Implementations/HttpServer/StreamWriter.cs b/Emby.Server.Implementations/HttpServer/StreamWriter.cs
index 750b0f795..90354385d 100644
--- a/Emby.Server.Implementations/HttpServer/StreamWriter.cs
+++ b/Emby.Server.Implementations/HttpServer/StreamWriter.cs
@@ -53,11 +53,6 @@ namespace Emby.Server.Implementations.HttpServer
SourceStream = source;
Headers["Content-Type"] = contentType;
-
- if (source.CanSeek)
- {
- // TODO Headers["Content-Length"] = source.Length.ToString(UsCulture);
- }
}
/// <summary>
@@ -65,8 +60,7 @@ namespace Emby.Server.Implementations.HttpServer
/// </summary>
/// <param name="source">The source.</param>
/// <param name="contentType">Type of the content.</param>
- /// <param name="logger">The logger.</param>
- public StreamWriter(byte[] source, string contentType, int contentLength)
+ public StreamWriter(byte[] source, string contentType)
{
if (string.IsNullOrEmpty(contentType))
{
@@ -76,8 +70,6 @@ namespace Emby.Server.Implementations.HttpServer
SourceBytes = source;
Headers["Content-Type"] = contentType;
-
- // TODO Headers["Content-Length"] = contentLength.ToString(UsCulture);
}
public async Task WriteToAsync(Stream responseStream, CancellationToken cancellationToken)