Switch to non-hardcoded register_middleware.
This commit is contained in:
parent
bf5438d573
commit
3f841f3b21
|
@ -290,7 +290,7 @@ class Sanic:
|
||||||
return self.register_middleware(middleware_or_request)
|
return self.register_middleware(middleware_or_request)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
return partial(Sanic.register_middleware, self,
|
return partial(self.register_middleware,
|
||||||
attach_to=middleware_or_request)
|
attach_to=middleware_or_request)
|
||||||
|
|
||||||
# Static Files
|
# Static Files
|
||||||
|
|
Loading…
Reference in New Issue
Block a user