address review feedback, small code refactoring

This commit is contained in:
Yun Xu 2018-12-09 15:18:33 -08:00
parent 1bfbc67c62
commit 956793e066

View File

@ -304,8 +304,8 @@ class HttpProtocol(asyncio.Protocol):
self._request_stream_task = self.loop.create_task(
self.body_append(body)
)
return
self.request.body_push(body)
else:
self.request.body_push(body)
async def body_append(self, body):
if self.request.stream.is_full():