Skip to content

Commit 3b03ca6

Browse files
committed
Typo
1 parent 2980a21 commit 3b03ca6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Http/Routing/src/Matching/HttpMethodMatcherPolicy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ private static bool ContainsHttpMethod(List<string> httpMethods, string httpMeth
431431
return false;
432432
}
433433

434-
private static bool IsCoresPreflight(HttpContext httpContext, string httpMethod, out StringValues accessControlRequestMethod)
434+
private static bool IsCorsPreflightRequest(HttpContext httpContext, string httpMethod, out StringValues accessControlRequestMethod)
435435
{
436436
accessControlRequestMethod = default;
437437
var headers = httpContext.Request.Headers;
@@ -474,7 +474,7 @@ public SingleEntryHttpMethodPolicyJumpTable(
474474
public override int GetDestination(HttpContext httpContext)
475475
{
476476
var httpMethod = httpContext.Request.Method;
477-
if (_supportsCorsPreflight && IsCoresPreflight(httpContext, httpMethod, out var accessControlRequestMethod))
477+
if (_supportsCorsPreflight && IsCorsPreflightRequest(httpContext, httpMethod, out var accessControlRequestMethod))
478478
{
479479
return CompareMethod(accessControlRequestMethod, _method) ? _corsPreflightDestination : _corsPreflightExitDestination;
480480
}
@@ -518,7 +518,7 @@ public override int GetDestination(HttpContext httpContext)
518518
int destination;
519519

520520
var httpMethod = httpContext.Request.Method;
521-
if (_supportsCorsPreflight && IsCoresPreflight(httpContext, httpMethod, out var accessControlRequestMethod))
521+
if (_supportsCorsPreflight && IsCorsPreflightRequest(httpContext, httpMethod, out var accessControlRequestMethod))
522522
{
523523
return _corsPreflightDestinations!.TryGetValue(accessControlRequestMethod, out destination)
524524
? destination

0 commit comments

Comments
 (0)