changeset 36278:a87093e2805d

hgweb_mod: partially undo 8afc25e7effc to fix py3 We now bytes-ify the entire request, so this is wrong. Differential Revision: https://phab.mercurial-scm.org/D2308
author Augie Fackler <augie@google.com>
date Sat, 17 Feb 2018 22:52:24 -0500
parents 18106c3bc94a
children 1e0c9f9f6f36
files mercurial/hgweb/hgweb_mod.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sat Feb 17 22:39:38 2018 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Sat Feb 17 22:52:24 2018 -0500
@@ -63,8 +63,6 @@
 
 def getstyle(req, configfn, templatepath):
     fromreq = req.form.get('style', [None])[0]
-    if fromreq is not None:
-        fromreq = pycompat.sysbytes(fromreq)
     styles = (
         fromreq,
         configfn('web', 'style'),