Skip to content

Commit 5f82e92

Browse files
committed
nit
1 parent 5494cdb commit 5f82e92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Servers/Kestrel/Core/src/Internal/Http/Http1Connection.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ bool TrimAndTakeMessageHeaders(ref SequenceReader<byte> reader, bool trailers)
290290

291291
public void OnStartLine(HttpVersionAndMethod versionAndMethod, TargetOffsetPathLength targetPath, Span<byte> startLine)
292292
{
293+
// Null characters are not allowed and should have been checked by HttpParser before calling this method
293294
Debug.Assert(startLine.IndexOf((byte)0) == -1);
294295

295296
var targetStart = targetPath.Offset;

0 commit comments

Comments
 (0)