~citrix-openstack/nova/xenapi

« back to all changes in this revision

Viewing changes to bin/nova-ajax-console-proxy

merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
    def __call__(self, env, start_response):
65
65
        try:
66
 
            req_url = '%s://%s%s?%s' % (env['wsgi.url_scheme'],
67
 
                                        env['HTTP_HOST'],
68
 
                                        env['PATH_INFO'],
69
 
                                        env['QUERY_STRING'])
 
66
            if 'QUERY_STRING' in env:
 
67
                req_url = '%s://%s%s?%s' % (env['wsgi.url_scheme'],
 
68
                                            env['HTTP_HOST'],
 
69
                                            env['PATH_INFO'],
 
70
                                            env['QUERY_STRING'])
 
71
            else:
 
72
                req_url = '%s://%s%s' % (env['wsgi.url_scheme'],
 
73
                                         env['HTTP_HOST'],
 
74
                                         env['PATH_INFO'])
 
75
 
70
76
            if 'HTTP_REFERER' in env:
71
77
                auth_url = env['HTTP_REFERER']
72
78
            else: