possibly fixed issue 964

This commit is contained in:
mdipierro
2012-09-08 19:02:19 -05:00
parent d2aa73570d
commit c7b2fb2b11
3 changed files with 3 additions and 1 deletions

View File

@@ -1 +1 @@
Version 2.0.8 (2012-09-08 16:04:03) stable
Version 2.0.8 (2012-09-08 19:02:15) stable

View File

@@ -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(

View File

@@ -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