From 3f841f3b21cabf656367ecba578816568634a6cf Mon Sep 17 00:00:00 2001 From: Johnny Rocketfingers Date: Thu, 18 May 2017 22:08:44 +0200 Subject: [PATCH] Switch to non-hardcoded register_middleware. --- sanic/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/app.py b/sanic/app.py index 174c763b..8b836151 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -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