Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 3bc1fc8

Browse files
committed
Use extension method
1 parent bcf40c7 commit 3bc1fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNetCore.Http/Internal/ApplicationBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public RequestDelegate Build()
8282
RequestDelegate app = context =>
8383
{
8484
// Implicitly execute matched endpoint at the end of the pipeline instead of returning 404
85-
var endpointRequestDelegate = context.Features.Get<IEndpointFeature>()?.Endpoint?.RequestDelegate;
85+
var endpointRequestDelegate = context.GetEndpoint()?.RequestDelegate;
8686
if (endpointRequestDelegate != null)
8787
{
8888
return endpointRequestDelegate(context);

0 commit comments

Comments
 (0)