mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-17 15:53:42 +01:00
update rssdp
This commit is contained in:
@@ -75,7 +75,7 @@ namespace Rssdp.Infrastructure
|
||||
if (message == null) throw new ArgumentNullException("message");
|
||||
|
||||
var parts = data.Split(' ');
|
||||
if (parts.Length < 3) throw new ArgumentException("data status line is invalid. Insufficient status parts.", "data");
|
||||
if (parts.Length < 2) throw new ArgumentException("data status line is invalid. Insufficient status parts.", "data");
|
||||
|
||||
message.Version = ParseHttpVersion(parts[0].Trim());
|
||||
|
||||
@@ -84,8 +84,12 @@ namespace Rssdp.Infrastructure
|
||||
throw new ArgumentException("data status line is invalid. Status code is not a valid integer.", "data");
|
||||
|
||||
message.StatusCode = (HttpStatusCode)statusCode;
|
||||
message.ReasonPhrase = parts[2].Trim();
|
||||
}
|
||||
|
||||
if (parts.Length >= 3)
|
||||
{
|
||||
message.ReasonPhrase = parts[2].Trim();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user