Call user-provided default_response

I'm not 100% sure, but it seems that user-provided `default_response`, stored as `Router.default_endpoint`, should be called when no match was found.
This commit is contained in:
majiang
2020-12-01 16:15:57 +09:00
committed by GitHub
parent 103816e27a
commit c0036e0474
+1 -1
View File
@@ -356,4 +356,4 @@ class Router:
await app(scope, receive, send)
return
await self.default_response(scope, receive, send)
await self.default_endpoint(scope, receive, send)