CR feedback

This commit is contained in:
Ryan Nowak 2014-04-07 11:30:16 -07:00
parent d2386d7ded
commit 3548a46ca9
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ namespace Microsoft.AspNet.Mvc
var path = _router.GetVirtualPath(context);
// See Routing Issue#31
if (path.Length > 0 && !path.StartsWith("/", StringComparison.Ordinal))
if (path.Length > 0 && path[0] != '/')
{
path = "/" + path;
}