Merge pull request #99 from channelcat/fix-incomplete-body
Fix incomplete request body being read
This commit is contained in:
commit
6a71ea50bd
|
@ -110,7 +110,10 @@ class HttpProtocol(asyncio.Protocol):
|
|||
)
|
||||
|
||||
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):
|
||||
self.loop.create_task(
|
||||
|
|
Loading…
Reference in New Issue
Block a user