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,7 +304,7 @@ 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):