File size: 375 Bytes
907001b
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
def _match(self, request, response):
    """pass"""
    is_html = 'text/html' in response.get('Content-Type', '')
    if is_html and hasattr(response, 'rendered_content'):
        correct_path = PATH_MATCHER.match(request.path) is not None
        not_included = self.include_flag not in response.rendered_content
        return correct_path and not_included
    return False