Merge pull request #99 from channelcat/fix-incomplete-body

Fix incomplete request body being read
This commit is contained in:
Channel Cat 2016-10-23 03:35:23 -07:00 committed by GitHub
commit 6a71ea50bd

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(