aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-08-16 21:15:05 +0200
committerGitHub <noreply@github.com>2020-08-16 21:15:05 +0200
commit57cc08691a77b8c07d964fbe2f5a9fe056b21087 (patch)
treed347ae238011d0780a438f175116411565fec54b /Jellyfin.Server
parentec12675feb5c37a3e7e5b121772231dc7fdb7159 (diff)
parent21cc308ec9fa9397ec93d41c49310c1fd056c3ce (diff)
Merge pull request #3908 from crobibero/xml-formatter
Use proper mediatypename
Diffstat (limited to 'Jellyfin.Server')
-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 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
/// </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);