diff --git a/VERSION b/VERSION index 4badc583..48760a89 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-10-04 20:36:17) dev +Version 2.0.9 (2012-10-04 20:38:49) dev diff --git a/gluon/rewrite.py b/gluon/rewrite.py index f23f4afe..cf0b7f09 100644 --- a/gluon/rewrite.py +++ b/gluon/rewrite.py @@ -231,7 +231,7 @@ def try_rewrite_on_error(http_response, request, environ, ticket=None): path_info = '/' + path_info.lstrip('/') # add leading '/' if missing environ['PATH_INFO'] = path_info error_handling_path = \ - url_in(request, environ)[1]['PATH_INFO'] + url_in(request, environ)[2]['PATH_INFO'] # Avoid infinite loop. if error_handling_path != error_raising_path: # wsgibase will be called recursively with the routes_onerror path.