The Free Software Media System - Server Backend & API
Address comments
Bond_009a23292f363c0
diff --git a/Emby.Server.Implementations/Services/ServiceExec.cs b/Emby.Server.Implementations/Services/ServiceExec.csindex 947a5cbf8d..7b970627e3 100644--- a/Emby.Server.Implementations/Services/ServiceExec.cs+++ b/Emby.Server.Implementations/Services/ServiceExec.cs@@ -111,7 +111,8 @@ namespace Emby.Server.Implementations.ServicesCultureInfo.InvariantCulture,"Could not find method named {1}({0}) or Any({0}) on Service {2}",requestDto.GetType().GetMethodName(),- expectedMethodName, serviceType.GetMethodName()));+ expectedMethodName,+ serviceType.GetMethodName()));}private static async Task<object> GetTaskResult(Task task)diff --git a/Emby.Server.Implementations/Services/ServiceHandler.cs b/Emby.Server.Implementations/Services/ServiceHandler.csindex e63a80ceea..e758cdd4d7 100644--- a/Emby.Server.Implementations/Services/ServiceHandler.cs+++ b/Emby.Server.Implementations/Services/ServiceHandler.cs@@ -2,6 +2,7 @@using System;using System.Collections.Generic;+using System.Net.Mime;using System.Reflection;using System.Threading;using System.Threading.Tasks;@@ -59,11 +60,11 @@ namespace Emby.Server.Implementations.Services{if (format.Equals("json", StringComparison.Ordinal)){- return "application/json";+ return MediaTypeNames.Application.Json;}else if (format.Equals("xml", StringComparison.Ordinal)){- return "application/xml";+ return MediaTypeNames.Application.Xml;}return null;