diff --git a/src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs b/src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs index 9d3fe80cb9..13c07baafc 100644 --- a/src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs +++ b/src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs @@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.HttpSys.Internal public static string DecodeAndUnescapePath(Span rawUrlBytes) { - Debug.Assert(rawUrlBytes.Length == 0, "Length of the URL cannot be zero."); + Debug.Assert(rawUrlBytes.Length > 0, "Length of the URL cannot be zero."); var rawPath = RawUrlHelper.GetPath(rawUrlBytes); if (rawPath.Length == 0)