Use string.Split(char) where possible instead of string.Split(char[])

This commit is contained in:
Bond_009
2020-11-14 15:47:34 +01:00
parent 569874a212
commit bc7359f87d
11 changed files with 30 additions and 30 deletions

View File

@@ -245,7 +245,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
return null;
}
var parts = authorizationHeader.Split(new[] { ' ' }, 2);
var parts = authorizationHeader.Split(' ', 2);
// There should be at least to parts
if (parts.Length != 2)
@@ -269,7 +269,7 @@ namespace Emby.Server.Implementations.HttpServer.Security
foreach (var item in parts)
{
var param = item.Trim().Split(new[] { '=' }, 2);
var param = item.Trim().Split('=', 2);
if (param.Length == 2)
{