From 64f84811bd6b10d63fdb859debea01c0ab529079 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Tue, 14 Mar 2017 11:45:04 -0700 Subject: [PATCH] Fix incorrect debug asserts --- .../Internal/Http/Frame.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Frame.cs b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Frame.cs index 1f0c0e2fac..a121986958 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Frame.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/Frame.cs @@ -1272,8 +1272,8 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http Debug.Assert(RawTarget != null, "RawTarget was not set"); Debug.Assert(Method != null, "Method was not set"); Debug.Assert(Path != null, "Path was not set"); - Debug.Assert(QueryString != "QueryString was not set"); - Debug.Assert(HttpVersion != "HttpVersion was not set"); + Debug.Assert(QueryString != null, "QueryString was not set"); + Debug.Assert(HttpVersion != null, "HttpVersion was not set"); } private void OnOriginFormTarget(HttpMethod method, HttpVersion version, Span target, Span path, Span query, Span customMethod, bool pathEncoded)