Only serve http requests, ignore websocket and lifespan events

This commit is contained in:
Tom Christie 2019-04-04 20:04:24 +01:00
parent 87b21b0c4f
commit 3d6aba6eb6

View File

@ -43,6 +43,7 @@ class GatewayServer:
self.pool = httpcore.PoolManager()
async def __call__(self, scope, receive, send):
assert scope['type'] == 'http'
path = scope['path']
query = scope['query_string']
method = scope['method']