Skip to content

Commit

Permalink
minimize changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Apr 29, 2023
1 parent 6ff01c0 commit 9f85a52
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions starlette/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ async def stream(self) -> typing.AsyncGenerator[bytes, None]:
while True:
message = await self._receive()
if message["type"] == "http.request":
if not message.get("more_body", False):
self._stream_consumed = True
body = message.get("body", b"")
if body:
yield body
Expand Down

0 comments on commit 9f85a52

Please sign in to comment.