懒得勤快 5 years ago
parent
commit
78e5600728
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/Masuit.MyBlogs.Core/Program.cs

+ 1 - 4
src/Masuit.MyBlogs.Core/Program.cs

@@ -24,10 +24,7 @@ namespace Masuit.MyBlogs.Core
             opt.ListenAnyIP(port.ToInt32());
             if (bool.Parse(config["Https:Enabled"]))
             {
-                opt.ListenAnyIP(config["Https:Port"].ToInt32(), s =>
-                {
-                    s.UseHttps(AppContext.BaseDirectory + config["Https:CertPath"], config["Https:CertPassword"]);
-                });
+                opt.ListenAnyIP(config["Https:Port"].ToInt32(), s => s.UseHttps(AppContext.BaseDirectory + config["Https:CertPath"], config["Https:CertPassword"]));
             }
             opt.Limits.MaxRequestBodySize = null;
         }).UseIISIntegration().UseStartup<Startup>());