fixed url_in(request, environ)[1]['PATH_INFO']
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.0.9 (2012-10-04 20:36:17) dev
|
Version 2.0.9 (2012-10-04 20:38:49) dev
|
||||||
|
|||||||
+1
-1
@@ -231,7 +231,7 @@ def try_rewrite_on_error(http_response, request, environ, ticket=None):
|
|||||||
path_info = '/' + path_info.lstrip('/') # add leading '/' if missing
|
path_info = '/' + path_info.lstrip('/') # add leading '/' if missing
|
||||||
environ['PATH_INFO'] = path_info
|
environ['PATH_INFO'] = path_info
|
||||||
error_handling_path = \
|
error_handling_path = \
|
||||||
url_in(request, environ)[1]['PATH_INFO']
|
url_in(request, environ)[2]['PATH_INFO']
|
||||||
# Avoid infinite loop.
|
# Avoid infinite loop.
|
||||||
if error_handling_path != error_raising_path:
|
if error_handling_path != error_raising_path:
|
||||||
# wsgibase will be called recursively with the routes_onerror path.
|
# wsgibase will be called recursively with the routes_onerror path.
|
||||||
|
|||||||
Reference in New Issue
Block a user