git: 9front

Download patch

ref: 5fb672f3c0985622d493fc3195e2547533986511
parent: 124a08a1541f18e04c93c3f1ed854025a2549852
author: aiju <devnull@localhost>
date: Sat Feb 25 08:06:23 EST 2017

hgwebfs: rewind data before pushing

--- a/sys/lib/python/hgext/hgwebfs.py
+++ b/sys/lib/python/hgext/hgwebfs.py
@@ -47,6 +47,7 @@
 				data = req.get_data()
 				post = open(self.dir+'/postbody', 'w', 0);
 				try:
+					data.seek(0)
 					while True:
 						buf = data.read(4096)
 						if len(buf) == 0:
--