Пример #1
0
    def _collect_request_parameters(self, **kwargs):
        BaseProxy._collect_request_parameters(self, **kwargs)

        # jira puts hostname into self-referential links, and hostname comes from jira configuration.
        # in case of jira proxy-served pages, that hostname is wrong.
        # this means an http accelerator like varnish which does not edit response bodies
        # cannot serve usable pages when running on any host other than configured jira host.
        # in turn this means jira proxy must always be involved in proxying process.
        # running an accelerator on top of jira-proxy makes latency even worse, so to maintain
        # some semblance of sanity we have to do all transformations that varnish does.
        self._adjust_request()