Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit 434afc9

Browse files
committed
Empty content length is also zero
1 parent 8ea6a1b commit 434afc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.AspNetCore.Server.Kestrel/Internal/Http/MessageBody.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public static MessageBody For(
291291
}
292292
}
293293

294-
return new ForContentLength(keepAlive, 0, context);
294+
return keepAlive ? _zeroContentLengthKeepAlive : _zeroContentLengthClose;
295295
}
296296

297297
private class ForRemainingData : MessageBody

0 commit comments

Comments
 (0)