Moved UseHttpsRedirection to else clause in Startup.cs Configure function
parent
8dccbf067d
commit
825f144e3a
|
@ -43,8 +43,10 @@ namespace QandA
|
|||
app.UseSwagger();
|
||||
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "QandA v1"));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
app.UseHttpsRedirection();
|
||||
}
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
|
|
Loading…
Reference in New Issue