changeset 36896 | b2a3308d6a21 |
parent 36878 | ccb70a77f746 |
child 36897 | d7fd203e36cc |
--- a/mercurial/hgweb/request.py Sun Mar 11 10:51:14 2018 -0700 +++ b/mercurial/hgweb/request.py Sun Mar 11 12:53:47 2018 -0700 @@ -222,7 +222,7 @@ # root. We also exclude its path components from PATH_INFO when resolving # the dispatch path. - apppath = env['SCRIPT_NAME'] + apppath = env.get('SCRIPT_NAME', '') if env.get('REPO_NAME'): if not apppath.endswith('/'):