Submitter | phabricator |
---|---|
Date | March 2, 2022, 11:31 p.m. |
Message ID | <differential-rev-PHID-DREV-tbeevmqw6qz3xow64fth-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/50646/ |
State | New |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -460,12 +460,9 @@ if real: # Re-parse the WSGI environment to take into account our # repository path component. - uenv = req.rawenv - if pycompat.ispy3: - uenv = { - k.decode('latin1'): v - for k, v in pycompat.iteritems(uenv) - } + uenv = { + k.decode('latin1'): v for k, v in req.rawenv.items() + } req = requestmod.parserequestfromenv( uenv, reponame=virtualrepo,