aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Formatters/XmlOutputFormatter.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-09-04 13:15:16 +0200
committerGitHub <noreply@github.com>2020-09-04 13:15:16 +0200
commit7a03e6d2c6dcbe20077a3a4a84a39b3728eca5a7 (patch)
tree85ab6f883fce4866a3efb6c330f8c6ca1e3d0bda /Jellyfin.Server/Formatters/XmlOutputFormatter.cs
parent5e76d5fd561d37e61466089173198f647ba5196e (diff)
parent81c764e87f52771a20e66af2d1c65245f2202925 (diff)
Merge pull request #3946 from crobibero/output-formatters
Clean up output formatters
Diffstat (limited to 'Jellyfin.Server/Formatters/XmlOutputFormatter.cs')
-rw-r--r--Jellyfin.Server/Formatters/XmlOutputFormatter.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server/Formatters/XmlOutputFormatter.cs b/Jellyfin.Server/Formatters/XmlOutputFormatter.cs
index 58319657d..01d99d7c8 100644
--- a/Jellyfin.Server/Formatters/XmlOutputFormatter.cs
+++ b/Jellyfin.Server/Formatters/XmlOutputFormatter.cs
@@ -16,8 +16,9 @@ namespace Jellyfin.Server.Formatters
/// </summary>
public XmlOutputFormatter()
{
+ SupportedMediaTypes.Clear();
SupportedMediaTypes.Add(MediaTypeNames.Text.Xml);
- SupportedMediaTypes.Add("text/xml;charset=UTF-8");
+
SupportedEncodings.Add(Encoding.UTF8);
SupportedEncodings.Add(Encoding.Unicode);
}