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

binary file, use 'rb'!
This commit is contained in:
Phillip J. Eby 2005-07-07 15:36:20 +00:00
parent 4c3259cbb9
commit 5cb784629f
1 changed files with 1 additions and 1 deletions

View File

@ -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',