always parse url instead of once
This commit is contained in:
parent
9b0240dc26
commit
f33e553cfd
|
@ -90,7 +90,6 @@ class ApplicationGatewayMiddleware:
|
||||||
# TODO: How to choose upstream?
|
# TODO: How to choose upstream?
|
||||||
upstream = self.app_gw.upstream[0]
|
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'):
|
if self._parsed_url.scheme not in ('http', 'https'):
|
||||||
|
|
Reference in New Issue