From 825f144e3aa8b617a46beda5f3646a2f06317314 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Tue, 22 Mar 2022 23:29:25 +1100 Subject: [PATCH] Moved UseHttpsRedirection to else clause in Startup.cs Configure function --- QandA/QandA/Startup.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/QandA/QandA/Startup.cs b/QandA/QandA/Startup.cs index 4555b4a..6f0809e 100644 --- a/QandA/QandA/Startup.cs +++ b/QandA/QandA/Startup.cs @@ -43,8 +43,10 @@ namespace QandA app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "QandA v1")); } - - app.UseHttpsRedirection(); + else + { + app.UseHttpsRedirection(); + } app.UseRouting();