Commit 507562d5 authored by Amos Latteier's avatar Amos Latteier

Fixed PATH_INFO so that it begins with a '/'. Thanks to Butch Landingin for the bug report.

parent e9135d7c
......@@ -218,7 +218,7 @@ class zhttp_handler:
env['SERVER_PROTOCOL']=request.version
if self.uri_base=='/':
env['SCRIPT_NAME']=''
env['PATH_INFO']=path
env['PATH_INFO']='/' + path
else:
env['SCRIPT_NAME'] = self.uri_base
try:
......
......@@ -218,7 +218,7 @@ class zhttp_handler:
env['SERVER_PROTOCOL']=request.version
if self.uri_base=='/':
env['SCRIPT_NAME']=''
env['PATH_INFO']=path
env['PATH_INFO']='/' + path
else:
env['SCRIPT_NAME'] = self.uri_base
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment