Mercurial > hg > mercurial-source
changeset 34007:ab9121fda8d2
configitems: register the 'server.maxhttpheaderlen' config
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 30 Jun 2017 03:44:11 +0200 |
parents | d227451ee280 |
children | 90a1b62bdc91 |
files | mercurial/configitems.py mercurial/wireproto.py |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -128,6 +128,9 @@ coreconfigitem('server', 'disablefullbundle', default=False, ) +coreconfigitem('server', 'maxhttpheaderlen', + default=1024, +) coreconfigitem('ui', 'clonebundleprefers', default=list, )
--- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -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')