Skip to content

Commit 21f6208

Browse files
committed
- CLOUSTACK-3229: Properly converts the Content-Length to string
representation in s3xen
1 parent ba01c25 commit 21f6208

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • scripts/vm/hypervisor/xenserver

scripts/vm/hypervisor/xenserver/s3xen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class S3Client(object):
270270
headers = {
271271
self.HEADER_CONTENT_MD5: compute_md5(src_filename),
272272
self.HEADER_CONTENT_TYPE: 'application/octet-stream',
273-
self.HEADER_CONTENT_LENGTH: os.stat(src_filename).st_size,
273+
self.HEADER_CONTENT_LENGTH: str(os.stat(src_filename).st_size),
274274
}
275275

276276
def send_body(connection):

0 commit comments

Comments
 (0)