possibly fixed issue 964
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.0.8 (2012-09-08 16:04:03) stable
|
||||
Version 2.0.8 (2012-09-08 19:02:15) stable
|
||||
|
||||
@@ -387,6 +387,7 @@ def wsgibase(environ, responder):
|
||||
|
||||
fixup_missing_path_info(environ)
|
||||
(static_file, environ) = url_in(request, environ)
|
||||
response.status = env.web2py_status_code or response.status
|
||||
|
||||
if static_file:
|
||||
if environ.get('QUERY_STRING','').startswith(
|
||||
|
||||
@@ -232,6 +232,7 @@ def try_rewrite_on_error(http_response, request, environ, ticket=None):
|
||||
# wsgibase will be called recursively with the routes_onerror path.
|
||||
environ['PATH_INFO'] = path_info
|
||||
environ['QUERY_STRING'] = query_string
|
||||
environ['WEB2PY_STATUS_CODE'] = status
|
||||
return None, environ
|
||||
# do nothing!
|
||||
return http_response, environ
|
||||
|
||||
Reference in New Issue
Block a user