Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/3xjn/TodoApp
Browse files Browse the repository at this point in the history
  • Loading branch information
3xjn committed Oct 16, 2024
2 parents b515c7c + 4c018e9 commit 7e3bee6
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,6 @@

app.UseCors("AllowAll");

app.Use(async (context, next) =>
{
if (!context.Request.IsHttps && !context.Request.Path.StartsWithSegments("/.well-known/acme-challenge"))
{
var withHttps = $"https://{context.Request.Host}{context.Request.Path}{context.Request.QueryString}";
context.Response.Redirect(withHttps);
}
else
{
await next();
}
});

app.MapControllers();

app.Run();

0 comments on commit 7e3bee6

Please sign in to comment.