From 7482cd4053fdec20559ffef333b871d3d9886256 Mon Sep 17 00:00:00 2001 From: aiju Date: Sat, 25 Feb 2017 13:06:23 +0100 Subject: hgwebfs: rewind data before pushing --- sys/lib/python/hgext/hgwebfs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/lib/python/hgext/hgwebfs.py b/sys/lib/python/hgext/hgwebfs.py index 70db3bc56..5a5b260eb 100644 --- a/sys/lib/python/hgext/hgwebfs.py +++ b/sys/lib/python/hgext/hgwebfs.py @@ -47,6 +47,7 @@ class Webconn: 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: -- cgit v1.2.3