aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-09-04 08:16:49 -0600
committercrobibero <cody@robibe.ro>2020-09-04 08:16:49 -0600
commit2a8653b3094d967e55b8bd012429d523629cdb38 (patch)
tree480ee90c8e3adcc49e1c97e4d1953483589d1889 /Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
parent82f30a35dbbb52dc069d027c9a3af7fc3bbb3100 (diff)
parent559a7fc336a022c92f63a8d77b6eb3c2f915c290 (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.cs4
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());