diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-10-31 22:19:18 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-10-31 22:19:18 +0100 |
commit | 9b01180ec981d6d0ffd7b0e84a3ddbb0a2cf1ecc (patch) | |
tree | 66ec7089fca89fcaa4f769cc74cf12e783968ea9 /src/hydrilla/proxy/policies/rule.py | |
parent | f1638c63de7c27c2fdccb55f4b540c8fb79d3762 (diff) | |
download | haketilo-hydrilla-master.tar.gz haketilo-hydrilla-master.zip |
Diffstat (limited to 'src/hydrilla/proxy/policies/rule.py')
-rw-r--r-- | src/hydrilla/proxy/policies/rule.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/policies/rule.py b/src/hydrilla/proxy/policies/rule.py index 1f39295..e318a7f 100644 --- a/src/hydrilla/proxy/policies/rule.py +++ b/src/hydrilla/proxy/policies/rule.py @@ -69,7 +69,8 @@ class RuleAllowPolicy(AllowPolicy): def make_info_page(self, http_info: http_messages.FullHTTPInfo) \ -> t.Optional[str]: - return base.get_info_template('js_rule_allowed_info.html.jinja').render( + template = self._get_info_template('js_rule_allowed_info.html.jinja') + return template.render( url = http_info.request_info.url.orig_url, pattern = self.pattern.orig_url ) @@ -81,7 +82,8 @@ class RuleBlockPolicy(BlockPolicy): def make_info_page(self, http_info: http_messages.FullHTTPInfo) \ -> t.Optional[str]: - return base.get_info_template('js_rule_blocked_info.html.jinja').render( + template = self._get_info_template('js_rule_blocked_info.html.jinja') + return template.render( url = http_info.request_info.url.orig_url, pattern = self.pattern.orig_url ) |