From 04c6fceb945b0e7979ad2755763268b7ca0b6732 Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Mon, 5 Oct 2015 15:19:59 -0700 Subject: [PATCH] React to aspnet/Routing#215 --- .../Routing/InnerAttributeRoute.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Microsoft.AspNet.Mvc.Core/Routing/InnerAttributeRoute.cs b/src/Microsoft.AspNet.Mvc.Core/Routing/InnerAttributeRoute.cs index 984fd98c61..546270314f 100644 --- a/src/Microsoft.AspNet.Mvc.Core/Routing/InnerAttributeRoute.cs +++ b/src/Microsoft.AspNet.Mvc.Core/Routing/InnerAttributeRoute.cs @@ -131,13 +131,7 @@ namespace Microsoft.AspNet.Mvc.Routing foreach (var matchingEntry in _matchingEntries) { - var requestPath = context.HttpContext.Request.Path.Value; - - if (!string.IsNullOrEmpty(requestPath) && requestPath[0] == '/') - { - requestPath = requestPath.Substring(1); - } - + var requestPath = context.HttpContext.Request.Path; var values = matchingEntry.TemplateMatcher.Match(requestPath); if (values == null) {