Skip to content

Commit

Permalink
more tornado fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Feb 19, 2019
1 parent c27b4eb commit 68ca0c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engineio/async_drivers/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def __init__(self, *args, **kwargs):
self.allowed_origins = engineio_server.cors_allowed_origins
self.receive_queue = asyncio.Queue()

async def get(self):
async def get(self, *args, **kwargs):
if self.request.headers.get('Upgrade', '').lower() == 'websocket':
await super().get()
super().get(*args, **kwargs)
await engineio_server.handle_request(self)

async def post(self):
async def post(self, *args, **kwargs):
await engineio_server.handle_request(self)

async def options(self):
async def options(self, *args, **kwargs):
await engineio_server.handle_request(self)

async def on_message(self, message):
Expand Down

0 comments on commit 68ca0c2

Please sign in to comment.