diff --git a/sonora/asgi.py b/sonora/asgi.py index 93012cc..46a91ed 100644 --- a/sonora/asgi.py +++ b/sonora/asgi.py @@ -26,8 +26,8 @@ async def __call__(self, scope, receive, send): if it matches a configured gRPC service path or fall through to the next application. """ - - assert scope["type"] == "http" + if not scope["type"] == "http": + return await self._application(scope, receive, send) rpc_method = self._get_rpc_handler(scope["path"]) request_method = scope["method"]