mercurial/hgweb/webutil.py
changeset 36869 1a1972b1a1ff
parent 36737 250f3168d907
child 36871 3d60a22e27f5
--- a/mercurial/hgweb/webutil.py	Sat Mar 10 12:35:38 2018 -0800
+++ b/mercurial/hgweb/webutil.py	Sat Mar 10 11:46:52 2018 -0800
@@ -438,8 +438,8 @@
         basectx = ctx.p1()
 
     style = web.config('web', 'style')
-    if 'style' in req.form:
-        style = req.form['style'][0]
+    if 'style' in req.req.qsparams:
+        style = req.req.qsparams['style']
 
     diff = diffs(web, tmpl, ctx, basectx, None, style)