diff -r 3c15b84ab66c -r 886fba199022 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Thu Mar 08 11:21:46 2018 -0800 +++ b/mercurial/hgweb/hgweb_mod.py Thu Mar 08 11:33:33 2018 -0800 @@ -330,7 +330,7 @@ # Route it to a wire protocol handler if it looks like a wire protocol # request. - protohandler = wireprotoserver.parsehttprequest(rctx, wsgireq, query, + protohandler = wireprotoserver.parsehttprequest(rctx, wsgireq, req, self.check_perm) if protohandler: