From 12b932e203efe6beae0a202f09d33e2087ed59ab Mon Sep 17 00:00:00 2001 From: Luke Latham <1622880+guardrex@users.noreply.github.com> Date: Mon, 17 Jan 2022 07:36:29 -0600 Subject: [PATCH] Code patch (#24639) --- .../security/enforcing-ssl/sample-snapshot/6.x/Program3.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/security/enforcing-ssl/sample-snapshot/6.x/Program3.cs b/aspnetcore/security/enforcing-ssl/sample-snapshot/6.x/Program3.cs index d1448fc318..b75d4093a1 100644 --- a/aspnetcore/security/enforcing-ssl/sample-snapshot/6.x/Program3.cs +++ b/aspnetcore/security/enforcing-ssl/sample-snapshot/6.x/Program3.cs @@ -4,7 +4,7 @@ var builder = WebApplication.CreateBuilder(args); builder.Services.AddRazorPages(); -if (builder.Environment.IsDevelopment()) +if (!builder.Environment.IsDevelopment()) { builder.Services.AddHttpsRedirection(options => {