From 3d6aba6eb66fdb07a68682649b8e772503315be5 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 4 Apr 2019 20:04:24 +0100 Subject: [PATCH] Only serve http requests, ignore websocket and lifespan events --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f55e4876..98af78aa 100644 --- a/README.md +++ b/README.md @@ -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']