From 956793e066ff4ceff6c443979510ff4145b4814e Mon Sep 17 00:00:00 2001 From: Yun Xu Date: Sun, 9 Dec 2018 15:18:33 -0800 Subject: [PATCH] address review feedback, small code refactoring --- sanic/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/server.py b/sanic/server.py index af253775..bb93f816 100644 --- a/sanic/server.py +++ b/sanic/server.py @@ -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():