Skip to content

Commit

Permalink
asgi: call next middleware instead of assert
Browse files Browse the repository at this point in the history
  • Loading branch information
mm0d committed Jun 30, 2021
1 parent 2030236 commit 331f6f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonora/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 331f6f6

Please sign in to comment.