This commit is contained in:
Ryan Nowak 2015-10-05 15:19:59 -07:00
parent a602d548e2
commit 04c6fceb94
1 changed files with 1 additions and 7 deletions

View File

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