From 801198c7a95f3635f6c8b830929e6a23fdee3db3 Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Mon, 29 Apr 2019 15:40:22 -0700 Subject: [PATCH] Fix bad assert (#9835) --- src/Shared/HttpSys/RequestProcessing/RequestUriBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)