Use proper mediatypename

This commit is contained in:
crobibero 2020-08-16 11:48:54 -06:00
parent 09c8597461
commit 21cc308ec9
1 changed files with 3 additions and 2 deletions

View File

@ -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);