Mercurial > bitten > bitten-test
changeset 889:9ac91d38198c
Make sure slave reads attachments as binary files. Fixes #657.
author | osimons |
---|---|
date | Fri, 21 Jan 2011 08:13:15 +0000 |
parents | 2d7e515d48cb |
children | 60d0807334ec |
files | bitten/slave.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/slave.py +++ b/bitten/slave.py @@ -512,7 +512,7 @@ filename = os.path.basename(path) log.debug('Attaching file %s to %s...', attachment.attr['filename'], resource_type) - f = open(path) + f = open(path, 'rb') try: data, content_type = encode_multipart_formdata({ 'file': (filename, f.read()),