git: 9front

Download patch

ref: 3a88324b4baf338aeb3df10a6452614b814aedbc
parent: 92adcda61567b2223d6f3147f2215035a71d3018
author: cinap_lenrek <cinap_lenrek@felloff.net>
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);
--