Merge pull request #662 from rsrdesarrollo/master

invariant: body after request is processed must be binary
This commit is contained in:
Eli Uriegas 2017-04-27 14:31:28 -07:00 committed by GitHub
commit 140062f8a3

View File

@ -173,8 +173,7 @@ class HttpProtocol(asyncio.Protocol):
self.request.body.append(body)
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(