diff options
author | aiju <devnull@localhost> | 2017-02-25 13:06:23 +0100 |
---|---|---|
committer | aiju <devnull@localhost> | 2017-02-25 13:06:23 +0100 |
commit | 7482cd4053fdec20559ffef333b871d3d9886256 (patch) | |
tree | 8f1a3c09b89804538f8a25d60de6a2abc4afbd28 /sys/lib | |
parent | e4dc3f9bd8bec99b030535012b1546e5baae717b (diff) |
hgwebfs: rewind data before pushing
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/python/hgext/hgwebfs.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |