##// END OF EJS Templates
wireproto: add config knob for http header length limit...
Mike Edgar -
r25691:5cda0ce0 default
parent child Browse files
Show More
@@ -1291,6 +1291,10 b' Controls generic server settings.'
1291 1291 checking that all new file revisions specified in manifests are
1292 1292 present. Default is False.
1293 1293
1294 ``maxhttpheaderlen``
1295 Instruct HTTP clients not to send request headers longer than this
1296 many bytes. Default is 1024.
1297
1294 1298 ``smtp``
1295 1299 --------
1296 1300
@@ -624,7 +624,8 b' def _capabilities(repo, proto):'
624 624 capsblob = bundle2.encodecaps(bundle2.getrepocaps(repo))
625 625 caps.append('bundle2=' + urllib.quote(capsblob))
626 626 caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority))
627 caps.append('httpheader=1024')
627 caps.append(
628 'httpheader=%d' % repo.ui.configint('server', 'maxhttpheaderlen', 1024))
628 629 return caps
629 630
630 631 # If you are writing an extension and consider wrapping this function. Wrap
General Comments 0
You need to be logged in to leave comments. Login now