From 21cc308ec9fa9397ec93d41c49310c1fd056c3ce Mon Sep 17 00:00:00 2001 From: crobibero Date: Sun, 16 Aug 2020 11:48:54 -0600 Subject: [PATCH] Use proper mediatypename --- Jellyfin.Server/Formatters/XmlOutputFormatter.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Server/Formatters/XmlOutputFormatter.cs b/Jellyfin.Server/Formatters/XmlOutputFormatter.cs index 5f2337b2a2..58319657d6 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 /// 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);