Fix bad assert (#9835)
This commit is contained in:
parent
4ddf91c092
commit
801198c7a9
|
|
@ -20,7 +20,7 @@ namespace Microsoft.AspNetCore.HttpSys.Internal
|
||||||
|
|
||||||
public static string DecodeAndUnescapePath(Span<byte> rawUrlBytes)
|
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);
|
var rawPath = RawUrlHelper.GetPath(rawUrlBytes);
|
||||||
|
|
||||||
if (rawPath.Length == 0)
|
if (rawPath.Length == 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue