Repository: libcloud Updated Branches: refs/heads/trunk 1cbb2004f -> d029c30fa
Convert object_size to string before adding it to a header. Since python-requests 2.11 (see https://github.com/requests/requests/issues/3477), integer values in headers are no longer automatically converted to strings, so we need to do it ourselves. This is the same change that was done a couple of lines above for the Content-Length header in commit 28a559042. Signed-off-by: Quentin Pradet <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/e77580d8 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/e77580d8 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/e77580d8 Branch: refs/heads/trunk Commit: e77580d8e0bfacf95e68210448186af4b9109025 Parents: 1cbb200 Author: Andreas Hasenack <[email protected]> Authored: Tue Aug 28 09:41:54 2018 -0300 Committer: Quentin Pradet <[email protected]> Committed: Wed Aug 29 14:30:11 2018 +0400 ---------------------------------------------------------------------- libcloud/storage/drivers/azure_blobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/e77580d8/libcloud/storage/drivers/azure_blobs.py ---------------------------------------------------------------------- diff --git a/libcloud/storage/drivers/azure_blobs.py b/libcloud/storage/drivers/azure_blobs.py index ae49a1d..ca63d3a 100644 --- a/libcloud/storage/drivers/azure_blobs.py +++ b/libcloud/storage/drivers/azure_blobs.py @@ -903,7 +903,7 @@ class AzureBlobsStorageDriver(StorageDriver): if blob_type == 'PageBlob': headers['Content-Length'] = str('0') - headers['x-ms-blob-content-length'] = object_size + headers['x-ms-blob-content-length'] = str(object_size) return headers
