diff -Nru libcloud-2.3.0/debian/changelog libcloud-2.3.0/debian/changelog --- libcloud-2.3.0/debian/changelog 2018-08-27 14:48:35.000000000 +0000 +++ libcloud-2.3.0/debian/changelog 2018-08-29 13:10:47.000000000 +0000 @@ -1,3 +1,10 @@ +libcloud (2.3.0-1ubuntu2) cosmic; urgency=medium + + * d/p/convert-object-size.patch: Convert object_size to string before + adding it to a header. + + -- Andreas Hasenack Wed, 29 Aug 2018 10:10:47 -0300 + libcloud (2.3.0-1ubuntu1) cosmic; urgency=medium * Address some python 3.7 issues (LP: #1788931): diff -Nru libcloud-2.3.0/debian/patches/convert-object-size.patch libcloud-2.3.0/debian/patches/convert-object-size.patch --- libcloud-2.3.0/debian/patches/convert-object-size.patch 1970-01-01 00:00:00.000000000 +0000 +++ libcloud-2.3.0/debian/patches/convert-object-size.patch 2018-08-29 13:10:47.000000000 +0000 @@ -0,0 +1,29 @@ +Description: 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 +Author: Andreas Hasenack +Bug: https://github.com/apache/libcloud/pull/1237 +Applied-Upstream: https://github.com/apache/libcloud/commit/e77580d8e0bfacf95e68210448186af4b9109025 +Last-Update: 2018-08-29 +--- + libcloud/storage/drivers/azure_blobs.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/libcloud/storage/drivers/azure_blobs.py ++++ b/libcloud/storage/drivers/azure_blobs.py +@@ -865,7 +865,7 @@ + + 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 + diff -Nru libcloud-2.3.0/debian/patches/series libcloud-2.3.0/debian/patches/series --- libcloud-2.3.0/debian/patches/series 2018-08-27 14:48:35.000000000 +0000 +++ libcloud-2.3.0/debian/patches/series 2018-08-29 13:10:47.000000000 +0000 @@ -1,2 +1,3 @@ remove-async-due-py37.patch handle-http_proxy-in-tests.patch +convert-object-size.patch