hgwebfs: write headers individually, so they are not limited by webfs iounit (thanks mischief)
This commit is contained in:
parent
c4ecd0fee0
commit
ad7316e87c
1 changed files with 4 additions and 2 deletions
|
@ -39,10 +39,12 @@ class Webconn:
|
||||||
ctl.seek(0)
|
ctl.seek(0)
|
||||||
ctl.write('url '+self.url)
|
ctl.write('url '+self.url)
|
||||||
m = 'User-Agent: mercurial/proto-1.0\r\n';
|
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.seek(0)
|
||||||
ctl.write('headers '+m)
|
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():
|
if req.has_data():
|
||||||
data = req.get_data()
|
data = req.get_data()
|
||||||
post = open(self.dir+'/postbody', 'w', 0);
|
post = open(self.dir+'/postbody', 'w', 0);
|
||||||
|
|
Loading…
Reference in a new issue