Skip to content

Commit a263612

Browse files
committed
Remove remaining OrdinalIgnoreCase path checks
1 parent 0ac3574 commit a263612

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Benchmarks/DebugInfoPageMiddleware.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ public DebugInfoPageMiddleware(RequestDelegate next, IHostingEnvironment hosting
3535

3636
public async Task Invoke(HttpContext httpContext)
3737
{
38-
// We check Ordinal explicitly first because it's faster than OrdinalIgnoreCase
39-
if (httpContext.Request.Path.StartsWithSegments(_path, StringComparison.Ordinal) ||
40-
httpContext.Request.Path.StartsWithSegments(_path, StringComparison.OrdinalIgnoreCase))
38+
if (httpContext.Request.Path.StartsWithSegments(_path, StringComparison.Ordinal))
4139
{
4240
httpContext.Response.ContentType = "text/html";
4341

src/Benchmarks/MultipleQueriesDapperMiddleware.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public MultipleQueriesDapperMiddleware(RequestDelegate next, string connectionSt
3535

3636
public async Task Invoke(HttpContext httpContext)
3737
{
38-
// We check Ordinal explicitly first because it's faster than OrdinalIgnoreCase
3938
if (httpContext.Request.Path.StartsWithSegments(_path, StringComparison.Ordinal))
4039
{
4140
var count = GetQueryCount(httpContext);

0 commit comments

Comments
 (0)