r7245 - branches/1.5/turbogears

1 view
Skip to first unread message

svn-c...@turbogears.org

unread,
Mar 8, 2011, 8:27:06 AM3/8/11
to turbogear...@googlegroups.com
Author: chrisz
Date: Tue Mar 8 07:27:04 2011
New Revision: 7245
URL: http://trac.turbogears.org/changeset/7245

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

Reply all
Reply to author
Forward
0 new messages