diff options
| author | crobibero <cody@robibe.ro> | 2020-09-04 08:16:49 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-04 08:16:49 -0600 |
| commit | 2a8653b3094d967e55b8bd012429d523629cdb38 (patch) | |
| tree | 480ee90c8e3adcc49e1c97e4d1953483589d1889 /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs | |
| parent | 82f30a35dbbb52dc069d027c9a3af7fc3bbb3100 (diff) | |
| parent | 559a7fc336a022c92f63a8d77b6eb3c2f915c290 (diff) | |
Merge remote-tracking branch 'upstream/master' into http-client-migrate
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()); |
