Use GetEndpoint extension method (#10745)

This commit is contained in:
Kahbazi 2019-06-03 20:53:43 +04:30 committed by Ryan Nowak
parent 670865d2a8
commit c7cb8467bf
1 changed files with 1 additions and 1 deletions

View File

@ -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)