ref: ad7316e87cd0444908caa74a5dfd4cf6168c5472
parent: c4ecd0fee0f0cef485a223d6e638a56bafd5bbda
author: cinap_lenrek <[email protected]>
date: Fri Nov 30 23:22:07 EST 2018
hgwebfs: write headers individually, so they are not limited by webfs iounit (thanks mischief)
--- a/sys/lib/python/hgext/hgwebfs.py
+++ b/sys/lib/python/hgext/hgwebfs.py
@@ -39,10 +39,12 @@
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);