Log:
Made virtual path dispatcher behave better if running behind a forwarding proxy.
Modified:
branches/1.5/turbogears/dispatchers.py
Modified: branches/1.5/turbogears/dispatchers.py
==============================================================================
--- branches/1.5/turbogears/dispatchers.py Tue Mar 8 06:56:58 2011 (r7244)
+++ branches/1.5/turbogears/dispatchers.py Tue Mar 8 07:27:04 2011 (r7245)
@@ -34,8 +34,8 @@
except AttributeError:
pass
if webpath:
+ request.script_name = webpath
if path_info.startswith(webpath + '/'):
- request.script_name = webpath
request.path_info = path_info = path_info[len(webpath):]
else:
# check for webpath only if not forwarded