Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jan 21, 2024
1 parent 9a104c4 commit f01ca3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions TechStacks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
using ServiceStack;
using ServiceStack.Logging;
using ServiceStack.OrmLite;
using TechStacks;
using TechStacks.Data;
Expand Down Expand Up @@ -35,9 +36,12 @@
{
var uriBuilder = new UriBuilder(ctx.RedirectUri) {
Scheme = "https",
Port = -1
Port = -1 // default port for scheme
};
ctx.RedirectUri = uriBuilder.ToString();
var newUri = uriBuilder.ToString();
LogManager.GetLogger(typeof(Program)).DebugFormat("Changing URL from '{0}' to '{1}'",
ctx.RedirectUri, newUri);
ctx.RedirectUri = newUri;
return Task.FromResult(0);
}
};
Expand Down

0 comments on commit f01ca3b

Please sign in to comment.