mercurial/hgweb/hgweb_mod.py
changeset 36898 d0b0fedbfb53
parent 36887 4daa22071d5d
child 36909 84110a1d0f7d
equal deleted inserted replaced
36897:d7fd203e36cc 36898:d0b0fedbfb53
   322         handled = wireprotoserver.handlewsgirequest(
   322         handled = wireprotoserver.handlewsgirequest(
   323             rctx, req, res, self.check_perm)
   323             rctx, req, res, self.check_perm)
   324         if handled:
   324         if handled:
   325             return res.sendresponse()
   325             return res.sendresponse()
   326 
   326 
   327         if req.havepathinfo:
   327         # Old implementations of hgweb supported dispatching the request via
       
   328         # the initial query string parameter instead of using PATH_INFO.
       
   329         # If PATH_INFO is present (signaled by ``req.dispatchpath`` having
       
   330         # a value), we use it. Otherwise fall back to the query string.
       
   331         if req.dispatchpath is not None:
   328             query = req.dispatchpath
   332             query = req.dispatchpath
   329         else:
   333         else:
   330             query = req.querystring.partition('&')[0].partition(';')[0]
   334             query = req.querystring.partition('&')[0].partition(';')[0]
   331 
   335 
   332         # translate user-visible url structure to internal structure
   336         # translate user-visible url structure to internal structure