Quick fix: Add routing feature on success

This commit is contained in:
Ryan Nowak 2015-12-11 08:36:46 -08:00
parent 36180ab6d0
commit 32bbd8516c
1 changed files with 4 additions and 5 deletions

View File

@ -36,16 +36,15 @@ namespace Microsoft.AspNet.Builder
if (context.Handler == null)
{
_logger.LogDebug("Request did not match any routes.");
await _next.Invoke(httpContext);
}
else
{
httpContext.Features[typeof(IRoutingFeature)] = new RoutingFeature()
{
RouteData = context.RouteData,
};
await _next.Invoke(httpContext);
}
else
{
await context.Handler(context.HttpContext);
}
}