From fb41b3e0b21281827f8924383f56daf759ab3437 Mon Sep 17 00:00:00 2001 From: Zhiwei Liang Date: Sun, 8 Aug 2021 13:40:59 -0500 Subject: [PATCH] call reset at the beginning --- sanic/blueprints.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sanic/blueprints.py b/sanic/blueprints.py index d8520f99..098fd48f 100644 --- a/sanic/blueprints.py +++ b/sanic/blueprints.py @@ -78,10 +78,9 @@ class Blueprint(BaseSanic): version_prefix: str = "/v", ): super().__init__(name=name) - + self.reset() self.ctx = SimpleNamespace() self.host = host - self.reset() self.strict_slashes = strict_slashes self.url_prefix = ( url_prefix[:-1]