Skip to content

Commit cc07fac

Browse files
committed
fix tests
1 parent 38e259a commit cc07fac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Components/Components/src/NavigationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ internal ReadOnlySpan<char> ToBaseRelativePath(ReadOnlySpan<char> uri)
259259
// whether the server would return the same page whether or not the
260260
// slash is present, but ASP.NET Core at least does by default when
261261
// using PathBase.
262-
return uri[..(_baseUri.OriginalString.Length - 1)];
262+
return uri[(_baseUri.OriginalString.Length - 1)..];
263263
}
264264

265265
var message = $"The URI '{uri}' is not contained by the base URI '{_baseUri}'.";

src/Components/Endpoints/src/RazorComponentEndpointInvoker.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ private async Task<RequestValidationState> ValidateRequestAsync(HttpContext cont
138138
}
139139
else
140140
{
141+
valid = true;
141142
Log.MiddlewareAntiforgeryValidationSucceeded(_logger);
142143
}
143144
}

0 commit comments

Comments
 (0)