summaryrefslogtreecommitdiff
path: root/sys/lib/python
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-12-01 04:22:07 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-12-01 04:22:07 +0100
commitad7316e87cd0444908caa74a5dfd4cf6168c5472 (patch)
tree07c483b64bee612872219eff9f2c5d062c4d39e4 /sys/lib/python
parentc4ecd0fee0f0cef485a223d6e638a56bafd5bbda (diff)
hgwebfs: write headers individually, so they are not limited by webfs iounit (thanks mischief)
Diffstat (limited to 'sys/lib/python')
-rw-r--r--sys/lib/python/hgext/hgwebfs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/lib/python/hgext/hgwebfs.py b/sys/lib/python/hgext/hgwebfs.py
index 45abf8cb5..9ae26b959 100644
--- a/sys/lib/python/hgext/hgwebfs.py
+++ b/sys/lib/python/hgext/hgwebfs.py
@@ -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);