Fix incomplete request body being read
This commit is contained in:
parent
e70263d012
commit
47ec026536
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user