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,6 +110,9 @@ class HttpProtocol(asyncio.Protocol):
)
def on_body(self, body):
if self.request.body:
self.request.body += body
else:
self.request.body = body
def on_message_complete(self):