# HG changeset patch # User Boris Feld # Date 1507685349 -7200 # Node ID f28c85e29afc8c1dd3a2f4994235dda4c9929626 # Parent bf2389b1f15e36a49321894000ca3864dbe9d4a3 configitems: register the 'web.push_ssl' config diff -r bf2389b1f15e -r f28c85e29afc mercurial/configitems.py --- a/mercurial/configitems.py Wed Oct 11 03:18:04 2017 +0200 +++ b/mercurial/configitems.py Wed Oct 11 03:29:09 2017 +0200 @@ -736,6 +736,9 @@ coreconfigitem('web', 'prefix', default='', ) +coreconfigitem('web', 'push_ssl', + default=True, +) coreconfigitem('web', 'refreshinterval', default=20, ) diff -r bf2389b1f15e -r f28c85e29afc mercurial/hgweb/common.py --- a/mercurial/hgweb/common.py Wed Oct 11 03:18:04 2017 +0200 +++ b/mercurial/hgweb/common.py Wed Oct 11 03:29:09 2017 +0200 @@ -69,7 +69,7 @@ # require ssl by default for pushing, auth info cannot be sniffed # and replayed scheme = req.env.get('wsgi.url_scheme') - if hgweb.configbool('web', 'push_ssl', True) and scheme != 'https': + if hgweb.configbool('web', 'push_ssl') and scheme != 'https': raise ErrorResponse(HTTP_FORBIDDEN, 'ssl required') deny = hgweb.configlist('web', 'deny_push')