mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-24 09:37:54 +01:00
More warnings
This commit is contained in:
@@ -431,13 +431,13 @@ namespace Jellyfin.Server.SocketSharp
|
||||
real = position + d;
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentException(nameof(origin));
|
||||
throw new ArgumentException("Unknown SeekOrigin value", nameof(origin));
|
||||
}
|
||||
|
||||
long virt = real - offset;
|
||||
if (virt < 0 || virt > Length)
|
||||
{
|
||||
throw new ArgumentException();
|
||||
throw new ArgumentException("Invalid position", nameof(origin));
|
||||
}
|
||||
|
||||
position = s.Seek(real, SeekOrigin.Begin);
|
||||
@@ -572,11 +572,6 @@ namespace Jellyfin.Server.SocketSharp
|
||||
public HttpMultipart(Stream data, string b, Encoding encoding)
|
||||
{
|
||||
this.data = data;
|
||||
// DB: 30/01/11: cannot set or read the Position in HttpListener in Win.NET
|
||||
// var ms = new MemoryStream(32 * 1024);
|
||||
// data.CopyTo(ms);
|
||||
// this.data = ms;
|
||||
|
||||
boundary = b;
|
||||
boundary_bytes = encoding.GetBytes(b);
|
||||
buffer = new byte[boundary_bytes.Length + 2]; // CRLF or '--'
|
||||
|
||||
Reference in New Issue
Block a user