diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-09-04 13:15:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-04 13:15:16 +0200 |
| commit | 7a03e6d2c6dcbe20077a3a4a84a39b3728eca5a7 (patch) | |
| tree | 85ab6f883fce4866a3efb6c330f8c6ca1e3d0bda /Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs | |
| parent | 5e76d5fd561d37e61466089173198f647ba5196e (diff) | |
| parent | 81c764e87f52771a20e66af2d1c65245f2202925 (diff) | |
Merge pull request #3946 from crobibero/output-formatters
Clean up output formatters
Diffstat (limited to 'Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs')
| -rw-r--r-- | Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs b/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs index 0024708ba..d0110b125 100644 --- a/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs +++ b/Jellyfin.Server/Formatters/PascalCaseJsonProfileFormatter.cs @@ -1,3 +1,4 @@ +using System.Net.Mime; using MediaBrowser.Common.Json; using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.Net.Http.Headers; @@ -16,8 +17,8 @@ namespace Jellyfin.Server.Formatters { SupportedMediaTypes.Clear(); // Add application/json for default formatter - SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse("application/json")); - SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse("application/json;profile=\"PascalCase\"")); + SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(MediaTypeNames.Application.Json)); + SupportedMediaTypes.Add(MediaTypeHeaderValue.Parse(JsonDefaults.PascalCaseMediaType)); } } } |
