6 writes to RequireHeaderSymmetry
Microsoft.AspNetCore.HttpOverrides.Tests (6)
ForwardedHeadersMiddlewareTest.cs (6)
119
RequireHeaderSymmetry
= requireSymmetry,
228
RequireHeaderSymmetry
= requireSymmetry,
773
RequireHeaderSymmetry
= true,
815
RequireHeaderSymmetry
= false,
859
RequireHeaderSymmetry
= true,
1268
RequireHeaderSymmetry
= true,
10 references to RequireHeaderSymmetry
Microsoft.AspNetCore.HttpOverrides (10)
ForwardedHeadersMiddleware.cs (10)
140
if (_options.
RequireHeaderSymmetry
&& checkFor && forwardedFor!.Length != forwardedProto.Length)
152
if (_options.
RequireHeaderSymmetry
166
if (_options.
RequireHeaderSymmetry
252
else if (_options.
RequireHeaderSymmetry
)
266
else if (_options.
RequireHeaderSymmetry
)
268
_logger.LogWarning(3, $"Forwarded scheme is not present, this is required by {nameof(_options.
RequireHeaderSymmetry
)}");
281
else if (_options.
RequireHeaderSymmetry
)
283
_logger.LogWarning(4, $"Incorrect number of x-forwarded-host header values, see {nameof(_options.
RequireHeaderSymmetry
)}.");
295
else if (_options.
RequireHeaderSymmetry
)
297
_logger.LogWarning(5, $"Incorrect number of x-forwarded-prefix header values, see {nameof(_options.
RequireHeaderSymmetry
)}");