possibly fixed issue 964
This commit is contained in:
@@ -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)
|
fixup_missing_path_info(environ)
|
||||||
(static_file, environ) = url_in(request, environ)
|
(static_file, environ) = url_in(request, environ)
|
||||||
|
response.status = env.web2py_status_code or response.status
|
||||||
|
|
||||||
if static_file:
|
if static_file:
|
||||||
if environ.get('QUERY_STRING','').startswith(
|
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.
|
# wsgibase will be called recursively with the routes_onerror path.
|
||||||
environ['PATH_INFO'] = path_info
|
environ['PATH_INFO'] = path_info
|
||||||
environ['QUERY_STRING'] = query_string
|
environ['QUERY_STRING'] = query_string
|
||||||
|
environ['WEB2PY_STATUS_CODE'] = status
|
||||||
return None, environ
|
return None, environ
|
||||||
# do nothing!
|
# do nothing!
|
||||||
return http_response, environ
|
return http_response, environ
|
||||||
|
|||||||
Reference in New Issue
Block a user