Show More
@@ -368,4 +368,7 b' class hgwebdir(object):' | |||||
368 | env['SERVER_NAME'] = u.host |
|
368 | env['SERVER_NAME'] = u.host | |
369 | if u.port: |
|
369 | if u.port: | |
370 | env['SERVER_PORT'] = u.port |
|
370 | env['SERVER_PORT'] = u.port | |
371 | env['SCRIPT_NAME'] = '/' + u.path |
|
371 | path = u.path or "" | |
|
372 | if not path.startswith('/'): | |||
|
373 | path = '/' + path | |||
|
374 | env['SCRIPT_NAME'] = path |
General Comments 0
You need to be logged in to leave comments.
Login now