mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Port set for downloads even when not used Request
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user