Пример #1
0
    def __init__(self):
        BaseProxy.__init__(self)

        self.html_comment_re = re.compile(r"<!--.*?-->", re.S)
        self.html_script_re = re.compile(r"<script.*?</script>", re.S)

        # note: we use re.match which requires match from beginning
        self.public_paths_re = re.compile(
            r"/(s/|images/|favicon\.ico|rest/api/1\.0/(header-separator|dropdowns)($|\?))"
        )