fixed url_in(request, environ)[1]['PATH_INFO']

This commit is contained in:
mdipierro
2012-10-04 20:39:00 -05:00
parent 3f6fa941cb
commit a23a2c52c2
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.0.9 (2012-10-04 20:36:17) dev
Version 2.0.9 (2012-10-04 20:38:49) dev

View File

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