Skip to content

Commit

Permalink
Ignore port when using UpstreamHost option
Browse files Browse the repository at this point in the history
  • Loading branch information
grssmnn committed Aug 19, 2021
1 parent 3ef6abd commit c31bbcb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public async Task Invoke(HttpContext httpContext)

var upstreamQueryString = httpContext.Request.QueryString.ToString();

var upstreamHost = httpContext.Request.Headers["Host"];
var upstreamHost = httpContext.Request.Headers["Host"].ToString().Split(":")[0];

Logger.LogDebug($"Upstream url path is {upstreamUrlPath}");

Expand Down

0 comments on commit c31bbcb

Please sign in to comment.