diff options
Diffstat (limited to 'Emby.Server.Implementations/Services')
| -rw-r--r-- | Emby.Server.Implementations/Services/ResponseHelper.cs | 2 | ||||
| -rw-r--r-- | Emby.Server.Implementations/Services/ServiceExec.cs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Services/ResponseHelper.cs b/Emby.Server.Implementations/Services/ResponseHelper.cs index 16de1a083..dc9975347 100644 --- a/Emby.Server.Implementations/Services/ResponseHelper.cs +++ b/Emby.Server.Implementations/Services/ResponseHelper.cs @@ -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"; } diff --git a/Emby.Server.Implementations/Services/ServiceExec.cs b/Emby.Server.Implementations/Services/ServiceExec.cs index aa67a3601..79f5c59e6 100644 --- a/Emby.Server.Implementations/Services/ServiceExec.cs +++ b/Emby.Server.Implementations/Services/ServiceExec.cs @@ -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>(); |
