Enable response compression also for https in kestrel

This commit is contained in:
Archi
2023-01-15 21:37:41 +01:00
parent ca9cccf5da
commit 164b009a32

View File

@@ -222,7 +222,7 @@ internal sealed class Startup {
}
// Add support for response compression
services.AddResponseCompression();
services.AddResponseCompression(static options => options.EnableForHttps = true);
string? ipcPassword = ASF.GlobalConfig != null ? ASF.GlobalConfig.IPCPassword : GlobalConfig.DefaultIPCPassword;