Private GIT

Skip to content
Snippets Groups Projects
Commit 6a329376 authored by kaso17's avatar kaso17 Committed by vlbox
Browse files

Fix HTTPS custom port handling

parent 45d26348
Branches
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment