mercurial/hgweb/hgweb_mod.py
changeset 32004 bd3cb917761a
parent 30766 d7bf7d2bd5ab
child 32788 eede022fc142
--- a/mercurial/hgweb/hgweb_mod.py	Fri Apr 14 00:03:30 2017 -0700
+++ b/mercurial/hgweb/hgweb_mod.py	Fri Mar 31 23:00:41 2017 -0400
@@ -335,7 +335,7 @@
         req.url = req.env['SCRIPT_NAME']
         if not req.url.endswith('/'):
             req.url += '/'
-        if 'REPO_NAME' in req.env:
+        if req.env.get('REPO_NAME'):
             req.url += req.env['REPO_NAME'] + '/'
 
         if 'PATH_INFO' in req.env: