Fixed: Port set for downloads even when not used Request

pull/74/head
Qstick 4 years ago
parent 838e4e582a
commit 1c1715178c

@ -158,7 +158,7 @@ namespace Prowlarr.Http.Extensions
public static string GetServerUrl(this HttpRequest request) public static string GetServerUrl(this HttpRequest request)
{ {
var scheme = request.Scheme; var scheme = request.Scheme;
var port = request.HttpContext.Connection.LocalPort; var port = request.HttpContext.Request.Host.Port;
// Check for protocol headers added by reverse proxys // Check for protocol headers added by reverse proxys
// X-Forwarded-Proto: A de facto standard for identifying the originating protocol of an HTTP request // X-Forwarded-Proto: A de facto standard for identifying the originating protocol of an HTTP request

Loading…
Cancel
Save