Switch to non-hardcoded register_middleware.

This commit is contained in:
Johnny Rocketfingers 2017-05-18 22:08:44 +02:00
parent bf5438d573
commit 3f841f3b21

View File

@ -290,7 +290,7 @@ class Sanic:
return self.register_middleware(middleware_or_request)
else:
return partial(Sanic.register_middleware, self,
return partial(self.register_middleware,
attach_to=middleware_or_request)
# Static Files