Use DefaultJsonSerializer for BodyAsJson-Response (#1448)

This commit is contained in:
Stef Heyenrath authored and GitHub committed 2026-04-18 09:43:24 +02:00
1 parent 1e591d5f8a
commit 885911203b
6 files changed
+291 -237

No files matched your search

@@ -414,6 +414,7 @@ public partial class WireMockServer : IWireMockServer
_options.CorsPolicyOptions = _settings.CorsPolicyOptions;
_options.ClientCertificateMode = (Microsoft.AspNetCore.Server.Kestrel.Https.ClientCertificateMode)_settings.ClientCertificateMode;
_options.AcceptAnyClientCertificate = _settings.AcceptAnyClientCertificate;
_options.DefaultJsonSerializer = _settings.DefaultJsonSerializer;
_httpServer = new AspNetCoreSelfHost(_options, urlOptions);
var startTask = _httpServer.StartAsync();