# HG changeset patch # User Pierre-Yves David # Date 1498787051 -7200 # Node ID ab9121fda8d21fe369ffb4d7b14b187922d8ff14 # Parent d227451ee2808b519d16e7d8517470cbb010756c configitems: register the 'server.maxhttpheaderlen' config diff -r d227451ee280 -r ab9121fda8d2 mercurial/configitems.py --- a/mercurial/configitems.py Fri Jun 30 03:44:10 2017 +0200 +++ b/mercurial/configitems.py Fri Jun 30 03:44:11 2017 +0200 @@ -128,6 +128,9 @@ coreconfigitem('server', 'disablefullbundle', default=False, ) +coreconfigitem('server', 'maxhttpheaderlen', + default=1024, +) coreconfigitem('ui', 'clonebundleprefers', default=list, ) diff -r d227451ee280 -r ab9121fda8d2 mercurial/wireproto.py --- a/mercurial/wireproto.py Fri Jun 30 03:44:10 2017 +0200 +++ b/mercurial/wireproto.py Fri Jun 30 03:44:11 2017 +0200 @@ -771,7 +771,7 @@ if proto.name == 'http': caps.append('httpheader=%d' % - repo.ui.configint('server', 'maxhttpheaderlen', 1024)) + repo.ui.configint('server', 'maxhttpheaderlen')) if repo.ui.configbool('experimental', 'httppostargs', False): caps.append('httppostargs')