invariant: body after request is processed must be binary
This commit is contained in:
parent
1036242064
commit
85acddddba
|
@ -173,7 +173,6 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
self.request.body.append(body)
|
self.request.body.append(body)
|
||||||
|
|
||||||
def on_message_complete(self):
|
def on_message_complete(self):
|
||||||
if self.request.body:
|
|
||||||
self.request.body = b''.join(self.request.body)
|
self.request.body = b''.join(self.request.body)
|
||||||
|
|
||||||
self._request_handler_task = self.loop.create_task(
|
self._request_handler_task = self.loop.create_task(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user