hgwebfs: rewind data before pushing

This commit is contained in:
aiju 2017-02-25 13:06:23 +01:00
parent e4dc3f9bd8
commit 7482cd4053

View file

@ -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: