- CLOUSTACK-3229: Properly converts the Content-Length to string

representation in s3xen
This commit is contained in:
John Burwell 2013-08-01 15:40:56 -04:00
parent ba01c25b47
commit 21f62087d3
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ class S3Client(object):
headers = {
self.HEADER_CONTENT_MD5: compute_md5(src_filename),
self.HEADER_CONTENT_TYPE: 'application/octet-stream',
self.HEADER_CONTENT_LENGTH: os.stat(src_filename).st_size,
self.HEADER_CONTENT_LENGTH: str(os.stat(src_filename).st_size),
}
def send_body(connection):