comparison mercurial/hgweb/hgweb_mod.py @ 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 af0a19d8812b
children 7937850a523d
comparison
equal deleted inserted replaced
36277:18106c3bc94a 36278:a87093e2805d
61 ('bz2', ('application/x-bzip2', 'tbz2', '.tar.bz2', None)), 61 ('bz2', ('application/x-bzip2', 'tbz2', '.tar.bz2', None)),
62 )) 62 ))
63 63
64 def getstyle(req, configfn, templatepath): 64 def getstyle(req, configfn, templatepath):
65 fromreq = req.form.get('style', [None])[0] 65 fromreq = req.form.get('style', [None])[0]
66 if fromreq is not None:
67 fromreq = pycompat.sysbytes(fromreq)
68 styles = ( 66 styles = (
69 fromreq, 67 fromreq,
70 configfn('web', 'style'), 68 configfn('web', 'style'),
71 'paper', 69 'paper',
72 ) 70 )