update response stream handling

This commit is contained in:
Luke Pulverenti
2016-11-12 03:02:46 -05:00
parent 6865bb5353
commit 1714cb8764
7 changed files with 32 additions and 15 deletions

View File

@@ -100,7 +100,12 @@ namespace Emby.Server.Implementations.HttpServer.SocketSharp
{
var outputStream = response.OutputStream;
outputStream.Flush();
// This is needed with compression
//if (!string.IsNullOrWhiteSpace(GetHeader("Content-Encoding")))
{
outputStream.Flush();
}
outputStream.Dispose();
response.Close();
}