diff options
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 ) |