Use GetEndpoint extension method (#10745)
This commit is contained in:
parent
670865d2a8
commit
c7cb8467bf
|
|
@ -33,7 +33,7 @@ namespace Microsoft.AspNetCore.Routing
|
|||
|
||||
public Task Invoke(HttpContext httpContext)
|
||||
{
|
||||
var endpoint = httpContext.Features.Get<IEndpointFeature>()?.Endpoint;
|
||||
var endpoint = httpContext.GetEndpoint();
|
||||
if (endpoint?.RequestDelegate != null)
|
||||
{
|
||||
if (!_routeOptions.SuppressCheckForUnhandledSecurityMetadata)
|
||||
|
|
|
|||
Loading…
Reference in New Issue