address review feedback, small code refactoring
This commit is contained in:
parent
1bfbc67c62
commit
956793e066
|
@ -304,8 +304,8 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
self._request_stream_task = self.loop.create_task(
|
self._request_stream_task = self.loop.create_task(
|
||||||
self.body_append(body)
|
self.body_append(body)
|
||||||
)
|
)
|
||||||
return
|
else:
|
||||||
self.request.body_push(body)
|
self.request.body_push(body)
|
||||||
|
|
||||||
async def body_append(self, body):
|
async def body_append(self, body):
|
||||||
if self.request.stream.is_full():
|
if self.request.stream.is_full():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user