Missed some stuff

This commit is contained in:
Bond_009
2020-11-14 16:28:49 +01:00
parent c4bb32f259
commit ff49a3bb61
12 changed files with 18 additions and 18 deletions

View File

@@ -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++)
{