From a0090470e831ad0a2b81f5eb2216f7f5705a9bd7 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 8 Dec 2021 00:30:50 +0000 Subject: [PATCH] changed environment names in csproj, moved https redirection to dev only --- Selector.CLI/Selector.CLI.csproj | 2 +- Selector.Web/Selector.Web.csproj | 2 +- Selector.Web/Startup.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Selector.CLI/Selector.CLI.csproj b/Selector.CLI/Selector.CLI.csproj index 2b240fa..585dc79 100644 --- a/Selector.CLI/Selector.CLI.csproj +++ b/Selector.CLI/Selector.CLI.csproj @@ -31,7 +31,7 @@ PreserveNewest - + PreserveNewest diff --git a/Selector.Web/Selector.Web.csproj b/Selector.Web/Selector.Web.csproj index 64aa487..360c456 100644 --- a/Selector.Web/Selector.Web.csproj +++ b/Selector.Web/Selector.Web.csproj @@ -41,7 +41,7 @@ PreserveNewest - + PreserveNewest diff --git a/Selector.Web/Startup.cs b/Selector.Web/Startup.cs index 985bcee..c129f86 100644 --- a/Selector.Web/Startup.cs +++ b/Selector.Web/Startup.cs @@ -113,6 +113,7 @@ namespace Selector.Web if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); + app.UseHttpsRedirection(); } else { @@ -121,7 +122,6 @@ namespace Selector.Web //app.UseHsts(); } - app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting();