Moved UseHttpsRedirection to else clause in Startup.cs Configure function
This commit is contained in:
parent
8dccbf067d
commit
825f144e3a
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user