Fix incomplete request body being read

This commit is contained in:
Channel Cat 2016-10-23 03:30:13 -07:00
parent e70263d012
commit 47ec026536

View File

@ -110,7 +110,10 @@ class HttpProtocol(asyncio.Protocol):
) )
def on_body(self, body): def on_body(self, body):
self.request.body = body if self.request.body:
self.request.body += body
else:
self.request.body = body
def on_message_complete(self): def on_message_complete(self):
self.loop.create_task( self.loop.create_task(