Fix proxy glitch

This commit is contained in:
Standa Lukeš 2020-09-30 15:55:58 +00:00
parent 0d684ca4f3
commit fb192d5af7

View file

@ -106,7 +106,7 @@ namespace Ksp.WebServer
{ {
response.Headers.Location = new UriBuilder(response.Headers.Location) { response.Headers.Location = new UriBuilder(response.Headers.Location) {
Host = cx.Request.Host.Host, 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 Scheme = cx.Request.Scheme
}.Uri; }.Uri;
} }