mercurial/hgweb/hgwebdir_mod.py
changeset 36857 da4e2f87167d
parent 36856 1f7d9024674c
child 36863 1a1972b1a1ff
--- a/mercurial/hgweb/hgwebdir_mod.py	Sat Mar 10 10:56:10 2018 -0800
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sat Mar 10 11:06:13 2018 -0800
@@ -291,7 +291,8 @@
                     # variable.
                     # TODO this is kind of hacky and we should have a better
                     # way of doing this than with REPO_NAME side-effects.
-                    wsgireq.req = requestmod.parserequestfromenv(wsgireq.env)
+                    wsgireq.req = requestmod.parserequestfromenv(
+                        wsgireq.env, wsgireq.req.bodyfh)
                     try:
                         # ensure caller gets private copy of ui
                         repo = hg.repository(self.ui.copy(), real)