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/Extensions/ApiServiceCollectionExtensions.cs | |
| parent | 5e76d5fd561d37e61466089173198f647ba5196e (diff) | |
| parent | 81c764e87f52771a20e66af2d1c65245f2202925 (diff) | |
Merge pull request #3946 from crobibero/output-formatters
Clean up output formatters
Diffstat (limited to 'Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs')
| -rw-r--r-- | Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs index 0160a05f9..bcce19d3c 100644 --- a/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs +++ b/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs @@ -152,6 +152,10 @@ namespace Jellyfin.Server.Extensions .AddMvc(opts => { opts.UseGeneralRoutePrefix(baseUrl); + + // Allow requester to change between camelCase and PascalCase + opts.RespectBrowserAcceptHeader = true; + opts.OutputFormatters.Insert(0, new CamelCaseJsonProfileFormatter()); opts.OutputFormatters.Insert(0, new PascalCaseJsonProfileFormatter()); |
