mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
fix to let test-hgwebdir pass
fixes a regression introduced in changeset 3c6008c8685a
This commit is contained in:
parent
9c2727d318
commit
d5755b1f51
@ -177,7 +177,7 @@ class hgwebdir(object):
|
||||
if u.configbool("web", "hidden", untrusted=True):
|
||||
continue
|
||||
|
||||
parts = [req.env['PATH_INFO'].strip('/'), name]
|
||||
parts = [req.env['PATH_INFO'].rstrip('/'), name]
|
||||
if req.env['SCRIPT_NAME']:
|
||||
parts.insert(0, req.env['SCRIPT_NAME'])
|
||||
url = ('/'.join(parts).replace("//", "/")) + '/'
|
||||
|
Loading…
Reference in New Issue
Block a user