Commit 7c683cbb authored by Phillip J. Eby's avatar Phillip J. Eby

Fix "upload" command garbling and truncating files on Windows. If it's a

binary file, use 'rb'!
parent 3b756201
......@@ -71,7 +71,7 @@ class upload(Command):
dry_run=self.dry_run)
# Fill in the data
content = open(filename).read()
content = open(filename,'rb').read()
data = {
':action':'file_upload',
'protcol_version':'1',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment