From f33e553cfdb78da78643abba18f82af6f838e71b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 22 Mar 2019 10:55:04 +0100 Subject: [PATCH] always parse url instead of once --- passbook/app_gw/middleware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/passbook/app_gw/middleware.py b/passbook/app_gw/middleware.py index 208cdd937..c6218b0a7 100644 --- a/passbook/app_gw/middleware.py +++ b/passbook/app_gw/middleware.py @@ -90,8 +90,7 @@ class ApplicationGatewayMiddleware: # TODO: How to choose upstream? upstream = self.app_gw.upstream[0] - if not getattr(self, '_parsed_url', None): - self._parsed_url = urlparse(upstream) + self._parsed_url = urlparse(upstream) if self._parsed_url.scheme not in ('http', 'https'): raise InvalidUpstream(ERRORS_MESSAGES['upstream-no-scheme'] %