diff --git a/daemon.py b/daemon.py index 6971e0242..29a25a261 100644 --- a/daemon.py +++ b/daemon.py @@ -2730,9 +2730,9 @@ class PubServer(BaseHTTPRequestHandler): startPos+=offset break - fd = open(filename, 'wb') - fd.write(postBytes[startPos:]) - fd.close() + fd = open(filename, 'wb') + fd.write(postBytes[startPos:]) + fd.close() else: filename=None