Browse Source

Fix proxy glitch

mj-deploy
Standa Lukeš 4 years ago
parent
commit
fb192d5af7
  1. 2
      server/Ksp.WebServer/Startup.cs

2
server/Ksp.WebServer/Startup.cs

@ -106,7 +106,7 @@ namespace Ksp.WebServer
{
response.Headers.Location = new UriBuilder(response.Headers.Location) {
Host = cx.Request.Host.Host,
Port = cx.Request.Host.Port.Value,
Port = cx.Request.Host.Port ?? (cx.Request.Scheme == "https" ? 443 : 80),
Scheme = cx.Request.Scheme
}.Uri;
}