[Updated] D12307: hgweb: simplify uenv assignment
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Thu Mar 3 16:56:20 UTC 2022
Closed by commit rHG7dc430b85351: hgweb: simplify uenv assignment (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12307?vs=32432&id=32520
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12307/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12307
AFFECTED FILES
mercurial/hgweb/hgwebdir_mod.py
CHANGE DETAILS
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,
To: indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220303/fd23e3de/attachment-0002.html>
More information about the Mercurial-patches
mailing list