Fix case sensitive comparison in TemplateMatcher

This commit is contained in:
Ajay Bhargav Baaskaran 2015-09-29 12:07:39 -07:00
parent 8bc54f91dd
commit d5d11eb30e
1 changed files with 3 additions and 1 deletions

View File

@ -204,7 +204,9 @@ namespace Microsoft.AspNet.Routing.Template
} }
else else
{ {
if (requestSegment.EndsWith(routeSegment.Parts[indexOfLastSegment - 1].Text)) if (requestSegment.EndsWith(
routeSegment.Parts[indexOfLastSegment - 1].Text,
StringComparison.OrdinalIgnoreCase))
{ {
return false; return false;
} }