mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Move some arrays to generics
This commit is contained in:
@@ -70,7 +70,7 @@ namespace Emby.Server.Implementations.Services
|
||||
response.ContentType = defaultContentType;
|
||||
}
|
||||
|
||||
if (new HashSet<string> { "application/json", }.Contains(response.ContentType))
|
||||
if (response.ContentType == "application/json")
|
||||
{
|
||||
response.ContentType += "; charset=utf-8";
|
||||
}
|
||||
|
||||
@@ -23,8 +23,6 @@ namespace Emby.Server.Implementations.Services
|
||||
"POLL", "SUBSCRIBE", "UNSUBSCRIBE"
|
||||
};
|
||||
|
||||
public static HashSet<string> AllVerbsSet = new HashSet<string>(AllVerbs);
|
||||
|
||||
public static List<MethodInfo> GetActions(this Type serviceType)
|
||||
{
|
||||
var list = new List<MethodInfo>();
|
||||
|
||||
Reference in New Issue
Block a user