fixed problem with lazy tables and self references
This commit is contained in:
+8
-8
@@ -457,14 +457,14 @@ def wsgibase(environ, responder):
|
||||
x_req_with = str(env.http_x_requested_with).lower()
|
||||
|
||||
request.update(
|
||||
client=client,
|
||||
folder=abspath('applications', app) + os.sep,
|
||||
ajax=x_req_with == 'xmlhttprequest',
|
||||
cid=env.http_web2py_component_element,
|
||||
is_local=env.remote_addr in local_hosts,
|
||||
is_https=env.wsgi_url_scheme in HTTPS_SCHEMES
|
||||
or request.env.http_x_forwarded_proto in HTTPS_SCHEMES
|
||||
or env.https == 'on')
|
||||
client = client,
|
||||
folder = abspath('applications', app) + os.sep,
|
||||
ajax = x_req_with == 'xmlhttprequest',
|
||||
cid = env.http_web2py_component_element,
|
||||
is_local = env.remote_addr in local_hosts,
|
||||
is_https = env.wsgi_url_scheme in HTTPS_SCHEMES or \
|
||||
request.env.http_x_forwarded_proto in HTTPS_SCHEMES \
|
||||
or env.https == 'on')
|
||||
request.compute_uuid() # requires client
|
||||
request.url = environ['PATH_INFO']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user