Fix casing of JSON in Jellyfin API. Currently only affects startup wizard.

This commit is contained in:
ZadenRB 2020-04-12 19:17:46 -06:00
parent 2be6550db4
commit 5a658cf260
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Library;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Jellyfin.Api.Controllers
{

View File

@ -71,6 +71,10 @@ namespace Jellyfin.Server.Extensions
// Clear app parts to avoid other assemblies being picked up
.ConfigureApplicationPartManager(a => a.ApplicationParts.Clear())
.AddApplicationPart(typeof(StartupController).Assembly)
.AddJsonOptions(options =>
{
options.JsonSerializerOptions.PropertyNamingPolicy = null;
})
.AddControllersAsServices();
}