From e017f34a195a42e44758011ce86b33ae33eef688 Mon Sep 17 00:00:00 2001 From: Ludovic Gasc Lemaire Date: Thu, 14 Mar 2019 18:08:13 +0100 Subject: [PATCH] chore(http): Fix config request --- pillars/transports/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillars/transports/http.py b/pillars/transports/http.py index 2708ae7..56d50cc 100644 --- a/pillars/transports/http.py +++ b/pillars/transports/http.py @@ -116,6 +116,6 @@ def add_route( async def resolve(self, request: aiohttp.web.Request) -> AbstractMatchInfo: match_info = await super().resolve(request) - request["config"] = self.config.get(match_info.handler, ()) - request["validator"] = self.validators.get(match_info.handler) + request["config"] = self.config.get(match_info.route, ()) + request["validator"] = self.validators.get(match_info.route) return match_info