Skip to content

Commit b147ac7

Browse files
authored
Update Http1ContentLengthMessageBody.cs
1 parent a99aea8 commit b147ac7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ public override bool TryReadInternal(out ReadResult readResult)
132132
KestrelBadHttpRequestException.Throw(RequestRejectionReason.RequestBodyTimeout);
133133
}
134134

135-
Task startTask = TryStartAsync();
136-
Debug.Assert(startTask.IsCompleted);
135+
TryStartAsync();
137136

138137
// The while(true) because we don't want to return a canceled ReadResult if the user themselves didn't cancel it.
139138
while (true)

0 commit comments

Comments
 (0)