mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 19:22:56 +08:00
Fix incorrectly overwritten ReferenceLoopHandling
setting
This commit is contained in:
parent
5ac3abac99
commit
ee102e3755
@ -156,12 +156,9 @@ namespace osu.Game.Online
|
|||||||
builder.AddNewtonsoftJsonProtocol(options =>
|
builder.AddNewtonsoftJsonProtocol(options =>
|
||||||
{
|
{
|
||||||
options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
|
options.PayloadSerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
|
||||||
options.PayloadSerializerSettings = new JsonSerializerSettings
|
// TODO: This should only be required to be `TypeNameHandling.Auto`.
|
||||||
{
|
// See usage in osu-server-spectator for further documentation as to why this is required.
|
||||||
// TODO: This should only be required to be `TypeNameHandling.Auto`.
|
options.PayloadSerializerSettings.TypeNameHandling = TypeNameHandling.All;
|
||||||
// See usage in osu-server-spectator for further documentation as to why this is required.
|
|
||||||
TypeNameHandling = TypeNameHandling.All
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user