Fix bad assert (#9835)

This commit is contained in:
Justin Kotalik 2019-04-29 15:40:22 -07:00 committed by GitHub
parent 4ddf91c092
commit 801198c7a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.HttpSys.Internal
public static string DecodeAndUnescapePath(Span<byte> 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)