Fixing CI build
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
namespace AMWD.Common.AspNetCore.Security.PathProtection
|
||||
{
|
||||
/// <summary>
|
||||
/// Extnsion for <see cref="IApplicationBuilder"/> to enable folder protection.
|
||||
/// Extension for <see cref="IApplicationBuilder"/> to enable folder protection.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
||||
public static class ProtectedPathExtensions
|
||||
|
||||
Reference in New Issue
Block a user