Skip to content

Commit

Permalink
fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
volllly committed Oct 16, 2023
1 parent 3002d0c commit 42f9eca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fiskaltrust.Launcher/Services/HostingService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using System.Security.Cryptography.X509Certificates;
using System.Runtime.Versioning;
using Microsoft.AspNetCore.Server.HttpSys;
using System.Text.Json;

namespace fiskaltrust.Launcher.Services
{
Expand Down Expand Up @@ -133,6 +134,7 @@ private WebApplication CreateRestHost<T>(WebApplicationBuilder builder, Uri uri,
{
options.SerializerOptions.NumberHandling = System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString;
options.SerializerOptions.Converters.Add(new NumberToStringConverter());
options.SerializerOptions.PropertyNamingPolicy = null;
});

builder.WebHost.ConfigureBinding(uri, listenOptions => ConfigureTls(listenOptions), isHttps: !string.IsNullOrEmpty(_launcherConfiguration.TlsCertificatePath) || !string.IsNullOrEmpty(_launcherConfiguration.TlsCertificateBase64), allowSynchronousIO: true, useHttpSys: _launcherConfiguration.UseHttpSysBinding!.Value);
Expand Down

0 comments on commit 42f9eca

Please sign in to comment.