mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
placeholder
This commit is contained in:
parent
3e8b54254f
commit
c2d80791be
@ -136,6 +136,11 @@ namespace SocketHttpListener.Net
|
||||
if (disposed)
|
||||
throw new ObjectDisposedException(GetType().ToString());
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
//return;
|
||||
}
|
||||
|
||||
byte[] bytes = null;
|
||||
MemoryStream ms = GetHeaders(response, _memoryStreamFactory, false);
|
||||
bool chunked = response.SendChunked;
|
||||
@ -176,6 +181,11 @@ namespace SocketHttpListener.Net
|
||||
if (disposed)
|
||||
throw new ObjectDisposedException(GetType().ToString());
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
//return;
|
||||
}
|
||||
|
||||
byte[] bytes = null;
|
||||
MemoryStream ms = GetHeaders(response, _memoryStreamFactory, false);
|
||||
bool chunked = response.SendChunked;
|
||||
@ -206,7 +216,7 @@ namespace SocketHttpListener.Net
|
||||
await stream.WriteAsync(buffer, offset, count, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (response.SendChunked)
|
||||
if (chunked)
|
||||
stream.Write(crlf, 0, 2);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user