Fix HTTPS custom port handling

This commit is contained in:
kaso17 2017-11-22 11:20:00 +01:00
parent fc3a1e21d3
commit 72df2c1545
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ namespace Jackett.Services
}
// default to 443 if the Host header doesn't contain the port (needed for reverse proxy setups)
if (scheme == "https" && !Request.RequestUri.Host.Contains(":"))
if (scheme == "https" && !Request.RequestUri.Authority.Contains(":"))
port = 443;
var serverUrl = string.Format("{0}://{1}:{2}{3}", scheme, Request.RequestUri.Host, port, BasePath());