aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-08-16 11:48:54 -0600
committercrobibero <cody@robibe.ro>2020-08-16 11:48:54 -0600
commit21cc308ec9fa9397ec93d41c49310c1fd056c3ce (patch)
treea1f488e96f3d1af721044d3c0e639c920072f7be
parent09c859746116a949008ebba832fa17b55c90e6e4 (diff)
Use proper mediatypename
-rw-r--r--Jellyfin.Server/Formatters/XmlOutputFormatter.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Server/Formatters/XmlOutputFormatter.cs b/Jellyfin.Server/Formatters/XmlOutputFormatter.cs
index 5f2337b2a..58319657d 100644
--- a/Jellyfin.Server/Formatters/XmlOutputFormatter.cs
+++ b/Jellyfin.Server/Formatters/XmlOutputFormatter.cs
@@ -1,4 +1,5 @@
-using System.Text;
+using System.Net.Mime;
+using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Formatters;
@@ -15,7 +16,7 @@ namespace Jellyfin.Server.Formatters
/// </summary>
public XmlOutputFormatter()
{
- SupportedMediaTypes.Add("text/xml");
+ SupportedMediaTypes.Add(MediaTypeNames.Text.Xml);
SupportedMediaTypes.Add("text/xml;charset=UTF-8");
SupportedEncodings.Add(Encoding.UTF8);
SupportedEncodings.Add(Encoding.Unicode);