hgwebfs: write headers individually, so they are not limited by webfs iounit (thanks mischief)

This commit is contained in:
cinap_lenrek 2018-12-01 04:22:07 +01:00
parent c4ecd0fee0
commit ad7316e87c

View file

@ -39,10 +39,12 @@ class Webconn:
ctl.seek(0)
ctl.write('url '+self.url)
m = 'User-Agent: mercurial/proto-1.0\r\n';
for h in req.headers:
m += h+': '+req.headers[h]+'\r\n'
ctl.seek(0)
ctl.write('headers '+m)
for h in req.headers:
ctl.seek(0)
ctl.write('headers '+h+': '+req.headers[h]+'\r\n')
if req.has_data():
data = req.get_data()
post = open(self.dir+'/postbody', 'w', 0);