Fix https crash for kestrel core

This commit is contained in:
Archi
2024-03-09 21:54:14 +01:00
parent d514157903
commit dbb105d3d3

View File

@@ -453,7 +453,13 @@ internal static class ArchiKestrel {
}
);
builder.WebHost.UseKestrelCore();
if (customConfigExists) {
// User might be using HTTPS when providing custom config, use full implementation of Kestrel for that scenario
builder.WebHost.UseKestrel();
} else {
// We don't need extra features when not using custom config
builder.WebHost.UseKestrelCore();
}
ConfigureServices(builder.Configuration, builder.Services);