Mercurial > public > mercurial-scm > hg
comparison mercurial/wireproto.py @ 33224: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 |
comparison
equal
deleted
inserted
replaced
33223:d227451ee280 | 33224:ab9121fda8d2 |
---|---|
769 caps.append('bundle2=' + urlreq.quote(capsblob)) | 769 caps.append('bundle2=' + urlreq.quote(capsblob)) |
770 caps.append('unbundle=%s' % ','.join(bundle2.bundlepriority)) | 770 caps.append('unbundle=%s' % ','.join(bundle2.bundlepriority)) |
771 | 771 |
772 if proto.name == 'http': | 772 if proto.name == 'http': |
773 caps.append('httpheader=%d' % | 773 caps.append('httpheader=%d' % |
774 repo.ui.configint('server', 'maxhttpheaderlen', 1024)) | 774 repo.ui.configint('server', 'maxhttpheaderlen')) |
775 if repo.ui.configbool('experimental', 'httppostargs', False): | 775 if repo.ui.configbool('experimental', 'httppostargs', False): |
776 caps.append('httppostargs') | 776 caps.append('httppostargs') |
777 | 777 |
778 # FUTURE advertise 0.2rx once support is implemented | 778 # FUTURE advertise 0.2rx once support is implemented |
779 # FUTURE advertise minrx and mintx after consulting config option | 779 # FUTURE advertise minrx and mintx after consulting config option |