Beispiel #1
0
    def handle_custom_response(self, environ, wb_url, full_prefix, host_prefix, kwargs):
        # don't attempt to check if url is valid by accessing content
        kwargs['no_timegate_check'] = True

        # test if request specifies a containerized browser
        if wb_url.mod.startswith('$br:'):
            return self.handle_browser_embed(wb_url, kwargs)

        return RewriterApp.handle_custom_response(self, environ, wb_url, full_prefix, host_prefix, kwargs)
    def handle_custom_response(self, environ, wb_url, full_prefix, host_prefix,
                               kwargs):
        # test if request specifies a containerized browser
        if wb_url.mod.startswith('$br:'):
            return self.handle_browser_embed(wb_url, kwargs)

        return RewriterApp.handle_custom_response(self, environ, wb_url,
                                                  full_prefix, host_prefix,
                                                  kwargs)
Beispiel #3
0
    def handle_custom_response(self, environ, wb_url, full_prefix, host_prefix, kwargs):
        # test if request specifies a containerized browser
        if wb_url.mod.startswith('$br:'):
            return self.handle_browser_embed(wb_url, kwargs)

        return RewriterApp.handle_custom_response(self, environ, wb_url, full_prefix, host_prefix, kwargs)