mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Missed some stuff
This commit is contained in:
@@ -119,7 +119,7 @@ namespace Rssdp.Infrastructure
|
||||
}
|
||||
else
|
||||
{
|
||||
headersToAddTo.TryAddWithoutValidation(headerName, values.First());
|
||||
headersToAddTo.TryAddWithoutValidation(headerName, values[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace Rssdp.Infrastructure
|
||||
return lineIndex;
|
||||
}
|
||||
|
||||
private IList<string> ParseValues(string headerValue)
|
||||
private List<string> ParseValues(string headerValue)
|
||||
{
|
||||
// This really should be better and match the HTTP 1.1 spec,
|
||||
// but this should actually be good enough for SSDP implementations
|
||||
@@ -160,7 +160,7 @@ namespace Rssdp.Infrastructure
|
||||
|
||||
if (headerValue == "\"\"")
|
||||
{
|
||||
values.Add(String.Empty);
|
||||
values.Add(string.Empty);
|
||||
return values;
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace Rssdp.Infrastructure
|
||||
else
|
||||
{
|
||||
var segments = headerValue.Split(SeparatorCharacters);
|
||||
if (headerValue.Contains("\""))
|
||||
if (headerValue.Contains('"'))
|
||||
{
|
||||
for (int segmentIndex = 0; segmentIndex < segments.Length; segmentIndex++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user