1
0

Fixing CI build

This commit is contained in:
2023-10-15 07:20:55 +02:00
parent 5bd5e4b802
commit 18b9627ea4
5 changed files with 146 additions and 231 deletions

View File

@@ -49,7 +49,9 @@ namespace Microsoft.AspNetCore.Http
{
string forwardedForAddress = null;
var headerNames = string.IsNullOrWhiteSpace(ipHeaderName) ? defaultIpHeaderNames : new[] { ipHeaderName }.Concat(defaultIpHeaderNames);
var headerNames = string.IsNullOrWhiteSpace(ipHeaderName)
? defaultIpHeaderNames
: new[] { ipHeaderName }.Concat(defaultIpHeaderNames);
foreach (string headerName in headerNames)
{
if (!httpContext.Request.Headers.ContainsKey(headerName))